File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ protected function postInitSetup() {
9898 ?: $ this ->getConfig ()->get ( MainConfigNames::CookiePrefix ) . '_session ' ,
9999 ];
100100
101- $ this ->useCrossSiteCookies =
102- strcasecmp ( $ this ->getConfig ()-> get ( MainConfigNames::CookieSameSite ) , 'none ' ) === 0 ;
101+ $ sameSite = $ this ->getConfig ()-> get ( MainConfigNames::CookieSameSite );
102+ $ this ->useCrossSiteCookies = $ sameSite !== null && strcasecmp ( $ sameSite , 'none ' ) === 0 ;
103103
104104 // @codeCoverageIgnoreStart
105105 $ this ->cookieOptions += [
@@ -110,7 +110,7 @@ protected function postInitSetup() {
110110 'secure ' => $ this ->getConfig ()->get ( MainConfigNames::CookieSecure )
111111 || $ this ->getConfig ()->get ( MainConfigNames::ForceHTTPS ),
112112 'httpOnly ' => $ this ->getConfig ()->get ( MainConfigNames::CookieHttpOnly ),
113- 'sameSite ' => $ this -> getConfig ()-> get ( MainConfigNames::CookieSameSite ) ,
113+ 'sameSite ' => $ sameSite ,
114114 ];
115115 }
116116
You can’t perform that action at this time.
0 commit comments