diff options
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php index 48888da1e..5c60f8a35 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -157,7 +157,7 @@ function auth_login($user,$pass,$sticky=false,$silent=false){ if($user && $pass){ // we got a cookie - see if we can trust it if(isset($session) && - ($session['time'] >= @filemtime($conf['cachedir'].'/sessionpurge')) && + $auth->useSessionCache($user) && ($session['time'] >= time()-$conf['auth_security_timeout']) && ($session['user'] == $user) && ($session['pass'] == $pass) && //still crypted |