Skip to content

Commit

Permalink
dont write cookies from array session store.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 18, 2013
1 parent add7ee0 commit 075781c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/Illuminate/Session/ArrayStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,17 @@ public function finish(Response $response, $lifetime)
// No storage on array sessions...
}

/**
* Write the session cookie to the response.
*
* @param Illuminate\Cookie\CookieJar $cookie
* @param string $name
* @param int $lifetime
* @return void
*/
public function getCookie(CookieJar $cookie, $name, $lifetime)
{
//
}

}
5 changes: 4 additions & 1 deletion src/Illuminate/Session/SessionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ protected function registerCloseEvent($app, $config)

$cookie = $session->getCookie($app['cookie'], $config['cookie'], $config['lifetime']);

$response->headers->setCookie($cookie);
if ( ! is_null($cookie))
{
$response->headers->setCookie($cookie);
}
});
}

Expand Down

0 comments on commit 075781c

Please sign in to comment.