From 04a1e44e6e94e1b2176cf3d5a4c0af9198ea0a7f Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 8 Aug 2011 09:59:50 -0500 Subject: [PATCH] Refactor the session class. --- system/session.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/session.php b/system/session.php index 373e325c..5891e9b0 100644 --- a/system/session.php +++ b/system/session.php @@ -231,10 +231,10 @@ private static function age_flash() */ private static function write_cookie() { - extract(Config::get('session')); - if ( ! headers_sent()) { + extract(Config::get('session')); + $minutes = ($expire_on_close) ? 0 : $lifetime; Cookie::put('laravel_session', static::$session['id'], $minutes, $path, $domain, $https, $http_only);