Review Board 1.7.22


Session timeout

Review Request #783 - Created May 25, 2011 and submitted

Jérôme Renard
ZETACOMP-81
Reviewers
zetacomponents
zetacomponents
Added a new ezcAuthenticationSessionOptions::idleTimeOut option to handle user's inactivity.
Added two new unit tests :
- ezcAuthenticationSessionTest::testSessionIsValidIdleTimeout()
- ezcAuthenticationSessionTest::testSessionIsValidIdleTimeoutExpired()

php ./UnitTest/src/runtests.php --filter=ezcAuthenticationSessionTest --verbose Authentication
PHPUnit 3.5.10 by Sebastian Bergmann.

Zeta Components:                        

  Authentication:                       
    ezcAuthenticationGeneralTest:       
    ezcAuthenticationSessionTest:       ............
[...]
Review request changed
Updated (June 16, 2011, 5:06 a.m.)
Stopped using time() and used $_SERVER["REQUEST_TIME"] as we do not actually need time().
Stored it in a local variable for more readability as proposed James.