fix session option extract bug.

This commit is contained in:
Taylor Otwell 2011-08-24 07:15:22 -05:00
parent b31f13d99f
commit 0a3208e0f2
1 changed files with 2 additions and 4 deletions

View File

@ -227,11 +227,9 @@ private static function write_cookie()
{ {
if ( ! headers_sent()) 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, Config::get('session.path'), Config::get('session.domain'), Config::get('session.https'), Config::get('http_only'));
Cookie::put('laravel_session', static::$session['id'], $minutes, $path, $domain, $https, $http_only);
} }
} }