We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50c83fe commit 6d728a5Copy full SHA for 6d728a5
lib/internal/Magento/Framework/Session/SessionManager.php
@@ -536,7 +536,7 @@ protected function clearSubDomainSessionCookie()
536
{
537
foreach (array_keys($this->_getHosts()) as $host) {
538
// Delete cookies with the same name for parent domains
539
- if (strpos($this->sessionConfig->getCookieDomain(), $host) !== false) {
+ if ($this->sessionConfig->getCookieDomain() !== $host) {
540
$metadata = $this->cookieMetadataFactory->createPublicCookieMetadata();
541
$metadata->setPath($this->sessionConfig->getCookiePath());
542
$metadata->setDomain($host);
0 commit comments