Commit 97a3f33c authored by Taylor Otwell's avatar 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