Refactor the session class.
This commit is contained in:
parent
a3e8d5ae26
commit
04a1e44e6e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue