Commit 97a3f33c by Taylor Otwell

tweak session expiration calculation.

parent 4bfcb064
......@@ -66,7 +66,9 @@ class Session {
{
$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));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment