From 0a3208e0f2e53d401c80cb1e9358beefda70b8ca Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 24 Aug 2011 07:15:22 -0500 Subject: [PATCH] fix session option extract bug. --- system/session.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/system/session.php b/system/session.php index 869144b7..89ebca32 100644 --- a/system/session.php +++ b/system/session.php @@ -227,11 +227,9 @@ private static function write_cookie() { if ( ! headers_sent()) { - extract(Config::get('session')); + $minutes = (Config::get('session.expire_on_close')) ? 0 : Config::get('session.lifetime'); - $minutes = ($expire_on_close) ? 0 : $lifetime; - - Cookie::put('laravel_session', static::$session['id'], $minutes, $path, $domain, $https, $http_only); + Cookie::put('laravel_session', static::$session['id'], $minutes, Config::get('session.path'), Config::get('session.domain'), Config::get('session.https'), Config::get('http_only')); } }