Commit 04a1e44e authored by Taylor Otwell's avatar Taylor Otwell

Refactor the session class.

parent a3e8d5ae
...@@ -231,10 +231,10 @@ class Session { ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment