We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b648e82 commit 791992eCopy full SHA for 791992e
1 file changed
src/Illuminate/Session/Middleware/StartSession.php
@@ -53,12 +53,12 @@ public function handle($request, Closure $next)
53
54
$this->collectGarbage($session);
55
56
- $this->addCookieToResponse(
57
- $response = $next($request), $session
58
- );
+ $response = $next($request);
59
60
$this->storeCurrentUrl($request, $session);
61
+ $this->addCookieToResponse($response, $session);
+
62
// Again, if the session has been configured we will need to close out the session
63
// so that the attributes may be persisted to some storage medium. We will also
64
// add the session identifier cookie to the application response headers now.
0 commit comments