diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-02-15 13:17:16 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-02-15 13:17:16 +0100 |
commit | 7172dbc0d546b2eec19b87ad2b9812242fa2219d (patch) | |
tree | 63b28d0c6d75cb12720f0475dc3502fe7bcc3fe2 /inc/auth.php | |
parent | 9ec826364ada5906c775152c1f681292ffea1b92 (diff) | |
download | rpg-7172dbc0d546b2eec19b87ad2b9812242fa2219d.tar.gz rpg-7172dbc0d546b2eec19b87ad2b9812242fa2219d.tar.bz2 |
Make session reference file check overridable for auth backends
darcs-hash:20080215121716-7ad00-35d275212e0e3c41626ed64d9096aad10f4ad2db.gz
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 |