Persist Shopping Cart = Yes or No (I've checked both conditions)
Frontend:
_Investigated results:_
if ($this->_persistentData->isEnabled() &&
!$this->_persistentSession->isPersistent() &&
!$this->_customerSession->isLoggedIn() &&
$this->_checkoutSession->getQuoteId() &&
!$observer->getControllerAction() instanceof \Magento\Checkout\Controller\Onepage
// persistent session does not expire on onepage checkout page to not spoil customer group id
) {
$this->_eventManager->dispatch('persistent_session_expired');
Note: Please note observer: persistent_session_expired checks whether guest customer then trigger persistent_session_expired event.
<event name="persistent_session_expired">
<observer name="refresh_customer_data" instance="Magento\Persistent\Observer\RefreshCustomerData" />
</event>
if ($this->cookieManager->getCookie('mage-cache-sessid')) {
$metadata = $this->cookieMetadataFactory->createCookieMetadata();
$metadata->setPath('/');
$this->cookieManager->deleteCookie('mage-cache-sessid', $metadata);
}
Note: above code does not check persistent session is expired or not.
/**
* Invalidate Cache By Close Cookie Session
*/
invalidateCacheByCloseCookieSession = function () {
if (!$.cookieStorage.isSet('mage-cache-sessid')) {
$.cookieStorage.set('mage-cache-sessid', true);
storage.removeAll();
}
};
Above code check cookie & if not found then cookie mage-cache-sessid is created & localStorage is empty.
@Ananth747, thank you for your report.
We've acknowledged the issue and added to our backlog.
This appears to be the fix, by the way:
https://github.com/magento/magento2/commit/bcffc4161e4960713922506870e1a4b711c5ca9e
Hi @engcom-backlog-nazar. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if your want to validate it one more time, please, go though the following instruction:
Component: XXXXX label(s) to the ticket, indicating the components it may be related to.[ ] 2. Verify that the issue is reproducible on 2.3-develop branchDetails
- Add the comment @magento-engcom-team give me 2.3-develop instance to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!
[ ] 3. Verify that the issue is reproducible on 2.2-develop branch. Details
- Add the comment @magento-engcom-team give me 2.2-develop instance to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.2-develop branch, please add the label Reproduced on 2.2.x
[ ] 4. If the issue is not relevant or is not reproducible any more, feel free to close it.
Hi @ananth747 The issue was re-tested and we can confirm that it was fixed on the 2.3 release branch. We closing this issue as fixed due to upcoming 2.3 release that will be available soon.
issue persists in 2.3.2
Most helpful comment
issue persists in 2.3.2