Browse Source

tweak session expiration calculation.

Taylor Otwell 13 years ago
parent
commit
97a3f33cb4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      laravel/session.php

+ 3 - 1
laravel/session.php

@@ -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));
 	}
 
 	/**