Skip to content

Commit

Permalink
Merge pull request #6518 from usm4n/master
Browse files Browse the repository at this point in the history
fixed expired XSRF-TOKEN cookie.
  • Loading branch information
taylorotwell committed Nov 28, 2014
2 parents 158fd97 + 7067df1 commit 1abf68a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function tokensMatch($request)
protected function addCookieToResponse($request, $response)
{
$response->headers->setCookie(
new Cookie('XSRF-TOKEN', $request->session()->token(), 120)
new Cookie('XSRF-TOKEN', $request->session()->token(), time() + 60 * 120)
);

return $response;
Expand Down

0 comments on commit 1abf68a

Please sign in to comment.