summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-02-15 13:17:16 +0100
committerAndreas Gohr <andi@splitbrain.org>2008-02-15 13:17:16 +0100
commit7172dbc0d546b2eec19b87ad2b9812242fa2219d (patch)
tree63b28d0c6d75cb12720f0475dc3502fe7bcc3fe2 /inc/auth.php
parent9ec826364ada5906c775152c1f681292ffea1b92 (diff)
downloadrpg-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.php2
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