XF 2.0 Increase login session time

I too am seeking the same solution. Does anyone have something that works please?
Thank you :)
You have to edit the file mentioned above to increase the value, then edit the value in the admin panel (not sure if you need debug mode ON).

Look for:
Code:
public function pruneExpiredActivityRecords($cutOff = null)
    {
        if ($cutOff === null)
        {
            $cutOff = \XF::$time - ????;
        }

Replace ????.
 
You have to edit the file mentioned above to increase the value, then edit the value in the admin panel (not sure if you need debug mode ON).

Look for:
Code:
public function pruneExpiredActivityRecords($cutOff = null)
    {
        if ($cutOff === null)
        {
            $cutOff = \XF::$time - ????;
        }

Replace ????.
Hi,
Thank you. Hmm I did try this but didn't seem to work. I left an account go idle for a short time, when I checked - it had been logged out.
Will try again.
Thank you again for your help.
 
Back
Top Bottom