Skip to content

Commit

Permalink
Merge branch 'previous-url-fix' of https://github.com/veencel/framework
Browse files Browse the repository at this point in the history
… into veencel-previous-url-fix
  • Loading branch information
taylorotwell committed Mar 19, 2019
2 parents 644bdfa + be3c8ba commit b648e82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Session/Middleware/StartSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ public function handle($request, Closure $next)

$this->collectGarbage($session);

$this->storeCurrentUrl($request, $session);

$this->addCookieToResponse(
$response = $next($request), $session
);

$this->storeCurrentUrl($request, $session);

// Again, if the session has been configured we will need to close out the session
// so that the attributes may be persisted to some storage medium. We will also
// add the session identifier cookie to the application response headers now.
Expand Down

0 comments on commit b648e82

Please sign in to comment.