Skip to content

Commit 43622bd

Browse files
[9.x] Align Remember Me Cookie Duration with CookieJar expiration (#44026)
* [8.x] Align Remember Me Cookie Duration with CookieJar expiration This PR #43806 changed the max cookie lifetime of the "forever" cookie - these two values are now misaligned. * Update Test
1 parent 0667a88 commit 43622bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Auth/SessionGuard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class SessionGuard implements StatefulGuard, SupportsBasicAuth
5858
*
5959
* @var int
6060
*/
61-
protected $rememberDuration = 2628000;
61+
protected $rememberDuration = 576000;
6262

6363
/**
6464
* The session used by the guard.

tests/Auth/AuthGuardTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ public function testLoginMethodQueuesCookieWhenRemembering()
427427
$guard = new SessionGuard('default', $provider, $session, $request);
428428
$guard->setCookieJar($cookie);
429429
$foreverCookie = new Cookie($guard->getRecallerName(), 'foo');
430-
$cookie->shouldReceive('make')->once()->with($guard->getRecallerName(), 'foo|recaller|bar', 2628000)->andReturn($foreverCookie);
430+
$cookie->shouldReceive('make')->once()->with($guard->getRecallerName(), 'foo|recaller|bar', 576000)->andReturn($foreverCookie);
431431
$cookie->shouldReceive('queue')->once()->with($foreverCookie);
432432
$guard->getSession()->shouldReceive('put')->once()->with($guard->getName(), 'foo');
433433
$session->shouldReceive('migrate')->once();

0 commit comments

Comments
 (0)