So the crux of this question is just how to prevent CakePHP from de-authenticating a session ONLY after a period of inactivity.
So, if the user does nothing then I expect CakePHP to log them out after a period of 30 minutes. However, if the user chooses to visit a page on the 28th minute of inactivity, then CakePHP should 'reset' it's timeout counter.
This currently isn't happening. Regardless of activity, CakePHP times out after the specified time in my core configuration (app/Config/core.php).
Here's my config code:
Configure::write('Session', array(
'defaults' => 'cake',
'timeout' => '30'
));
Any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…