Refactor the session class.

This commit is contained in:
Taylor Otwell
2011-08-08 09:59:50 -05:00
parent a3e8d5ae26
commit 04a1e44e6e

View File

@@ -231,10 +231,10 @@ class Session {
*/ */
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);