- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2016
07:54 PM
01-27-2016
07:54 PM
Hi guys
I'm getting this really weird issue where customer accounts need to hit log out twice to actually log out.
First, you click the link the top links and this will take you to page saying you've succesfully logged out. But then it will show this:
Only by clicking "Not [name]?" will it finally log a customer out.
I want logout with a one simple click.
Any ideas what's up with this? I couldn't google anything similar. Perhaps it's a theme setting?
Thanks in advance
Mark
Solved! Go to Solution.
Labels:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2016
02:23 PM
01-28-2016
02:23 PM
I created an observer on the customer_logout event and ran this function:
$customerSession = Mage::getSingleton('customer/session'); $customerSession ->setCustomerId(null) ->setCustomerGroupId(null); Mage::helper('persistent/session')->getSession()->removePersistentCookie();
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2016
02:23 PM
01-28-2016
02:23 PM
I created an observer on the customer_logout event and ran this function:
$customerSession = Mage::getSingleton('customer/session'); $customerSession ->setCustomerId(null) ->setCustomerGroupId(null); Mage::helper('persistent/session')->getSession()->removePersistentCookie();