File tree 2 files changed +2
-1
lines changed
src/Symfony/Component/HttpKernel 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ public function onKernelResponse(ResponseEvent $event)
146
146
$ sessionCookieHttpOnly = $ this ->sessionOptions ['cookie_httponly ' ] ?? true ;
147
147
$ sessionCookieSameSite = $ this ->sessionOptions ['cookie_samesite ' ] ?? Cookie::SAMESITE_LAX ;
148
148
149
- SessionUtils::popSessionCookie ($ sessionName , $ sessionCookiePath );
149
+ SessionUtils::popSessionCookie ($ sessionName , $ sessionId );
150
150
151
151
$ request = $ event ->getRequest ();
152
152
$ requestSessionCookieId = $ request ->cookies ->get ($ sessionName );
Original file line number Diff line number Diff line change @@ -312,6 +312,7 @@ public function testSessionUsageLogIfStatelessAndSessionUsed()
312
312
public function testSessionIsSavedWhenUnexpectedSessionExceptionThrown ()
313
313
{
314
314
$ session = $ this ->createMock (Session::class);
315
+ $ session ->expects ($ this ->exactly (1 ))->method ('getId ' )->willReturn ('123456 ' );
315
316
$ session ->expects ($ this ->exactly (1 ))->method ('getName ' )->willReturn ('PHPSESSID ' );
316
317
$ session ->method ('isStarted ' )->willReturn (true );
317
318
$ session ->expects ($ this ->exactly (2 ))->method ('getUsageIndex ' )->will ($ this ->onConsecutiveCalls (0 , 1 ));
You can’t perform that action at this time.
0 commit comments