I'm using CakePHP v2 on a LAMP server and I appear to have a problem with the session not automatically renewing itself if the user stays active.
In other words, if I set the session cookie to 3 days then the user gets logged out after 3 days even if they've been active the whole time.
At first, I though that this might be the correct behaviour but then when I posted a qustion about it ( Extending the life of the CakePHP Session Cookie ) the only answer I got tended to suggest that the bahaviour I'm experiencing is NOT the default behaviour.
So, presumably I have done something wrong somewhere. Here is what I've put in APP/Config/core.php:
Configure::write('Session', array(
'defaults' => 'database',
'cookie' => 'mycookie',
'timeout' => 4320 //3 days
));
I just want the cookie to stay valid for 3 days from the last activity of the user. What it's doing at the moment is expiring after 3 days even if the user has been active the whole time.