Refactor the session class.

This commit is contained in:
Taylor Otwell 2011-08-08 09:59:50 -05:00
parent a3e8d5ae26
commit 04a1e44e6e
1 changed files with 2 additions and 2 deletions

View File

@ -231,10 +231,10 @@ private static function age_flash()
*/ */
private static function write_cookie() private static function write_cookie()
{ {
extract(Config::get('session'));
if ( ! headers_sent()) if ( ! headers_sent())
{ {
extract(Config::get('session'));
$minutes = ($expire_on_close) ? 0 : $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, $path, $domain, $https, $http_only);