tweak session expiration calculation.
This commit is contained in:
parent
4bfcb064bf
commit
97a3f33cb4
|
@ -66,7 +66,9 @@ protected static function invalid()
|
||||||
{
|
{
|
||||||
$lifetime = Config::$items['session']['lifetime'];
|
$lifetime = Config::$items['session']['lifetime'];
|
||||||
|
|
||||||
return is_null(static::$session) or (time() - static::$session['last_activity'] > ($lifetime * 60));
|
$idle = time() - static::$session['last_activity'];
|
||||||
|
|
||||||
|
return is_null(static::$session) or ($idle > ($lifetime * 60));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue