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.
2 parents 796906f + 289d609 commit 2e517efCopy full SHA for 2e517ef
app/code/Magento/LoginAsCustomerFrontendUi/Plugin/InvalidateExpiredSessionPlugin.php
@@ -61,7 +61,9 @@ public function beforeExecute(ActionInterface $subject)
61
$customerId = (int)$this->session->getCustomerId();
62
if ($adminId && $customerId) {
63
if (!$this->isLoginAsCustomerSessionActive->execute($customerId, $adminId)) {
64
- $this->session->destroy();
+ $this->session->clearStorage();
65
+ $this->session->expireSessionCookie();
66
+ $this->session->regenerateId();
67
}
68
69
0 commit comments