ptlhost Posted June 25, 2012 Share Posted June 25, 2012 (edited) Hello, Been using prestashop for a while and very happy. On my one site client complained as when he logged as a client in the front office he can't logout unless he clears cookies. Tried myside on all browsers and have the same problem. Tried searching for info on how to resolve this issue but can't find the correct answer. I read somewhere that it could be a issue with my server but need more specific info to open a ticket to my hosting company. I have a VPS with wiredtree. Thank you for any help on this subject Johan I resolved this problem as I was redirecting the wrong way. Can somebody please close or delete this thread Edited June 25, 2012 by ptlhost (see edit history) Link to comment Share on other sites More sharing options...
Gudui Posted March 27, 2013 Share Posted March 27, 2013 Bump, have the same problem Link to comment Share on other sites More sharing options...
Presta Ecommerce Posted March 30, 2013 Share Posted March 30, 2013 Did you change any of the url settings? If those settings do not match, cookies will see you as different person. Link to comment Share on other sites More sharing options...
Valerio M Posted October 22, 2014 Share Posted October 22, 2014 Did you change any of the url settings? If those settings do not match, cookies will see you as different person. Hi, I changed url from nomesito.it to www.nomesito.it and i can't log-in or log-out of front-end shop. How can I do now ? Link to comment Share on other sites More sharing options...
brigittadik Posted October 29, 2014 Share Posted October 29, 2014 same problem here? is there a solution. Please help!! Link to comment Share on other sites More sharing options...
Valerio M Posted October 29, 2014 Share Posted October 29, 2014 Hi, Have you tried also on other PC? I solved this issue clearing the cookies ! (Clear also ps'cache & browser'cache). Link to comment Share on other sites More sharing options...
Impasto Posted May 6, 2016 Share Posted May 6, 2016 Ditto. Link to comment Share on other sites More sharing options...
birbal007 Posted July 13, 2016 Share Posted July 13, 2016 i'm facing the same issue.. i cannot logout until i clear cookies.. but it is not a solution to clear cookies for logout.. i need a perfect solution.. i'm using prestashop 1.6 Link to comment Share on other sites More sharing options...
Impasto Posted July 13, 2016 Share Posted July 13, 2016 We set cookies to expire immediately upon logout and instructed our client to use a dedicated browser (chrome) only for her site and to always use it in incognito mode. This seems to have solved our login/logout problems. Firefox has a special setting in "Security" to remember login cookies. That might have been forcing constant logins despite logging out. (all the other cookie settings are under the "Privacy" preferences) Again... not a proper PrestaShop solution, but I've not had a single complaint from my client regarding this in over 6 weeks. PrestShop's silence & lack of solutions on login bugs like this is deafening. I suspect a major caching issue that they can't fix and is now relying on version 1.7 to quietly fix. I'd love to be proven wrong because I don't have any clients who will want me to rebuild their site just to get an upgrade. (I can't wait for 1.7, but only for new sites) Link to comment Share on other sites More sharing options...
birbal007 Posted July 13, 2016 Share Posted July 13, 2016 We set cookies to expire immediately upon logout and instructed our client to use a dedicated browser (chrome) only for her site and to always use it in incognito mode. This seems to have solved our login/logout problems. Firefox has a special setting in "Security" to remember login cookies. That might have been forcing constant logins despite logging out. (all the other cookie settings are under the "Privacy" preferences) Again... not a proper PrestaShop solution, but I've not had a single complaint from my client regarding this in over 6 weeks. PrestShop's silence & lack of solutions on login bugs like this is deafening. I suspect a major caching issue that they can't fix and is now relying on version 1.7 to quietly fix. I'd love to be proven wrong because I don't have any clients who will want me to rebuild their site just to get an upgrade. (I can't wait for 1.7, but only for new sites) i just tried it in incognito mode also. i'm facing this problem in all browsers firefox, chrome. also tried on different systems but problem remain same. when we logout cookies still hold the credentials. u can check ur self on www.ucodice.com/fashion_point/ Link to comment Share on other sites More sharing options...
Impasto Posted July 13, 2016 Share Posted July 13, 2016 i just tried it in incognito mode also. i'm facing this problem in all browsers firefox, chrome. also tried on different systems but problem remain same. when we logout cookies still hold the credentials. u can check ur self on www.ucodice.com/fashion_point/ We set front office cookies life to 0 hours (as per screenshot). The setting is on the Administration / Preferences page. It initially didn't do anything because that only related to new cookies, and all the old ones had a lifespan set to a few hundred hours so they were still active. This was why we moved my client to a completely virgin browser without any login legacy. Additionally, I see we are running the site with friendly URLs off and absolutely every scrap of caching turned off. On that topic, we found caching caused a few problems as well. It seemed to be remembering previous logins (possibly by IP address) because we'd been using multiple accounts for testing and my client was signing up customers on their behalves. Login as John and then a few pages later, we'd be automatically logged in as Mary. Log out, browse a few pages and we're magically back in as John. View order history and we'd be presented with Mary's orders. Reload the page and we see John's history – utter chaos! (and of course this is all happening on the client's laptop so there was no hiding it) If you do this, make sure you delete the cache manually. We did an update of PrestaShop and deleting cache only deleted the cache from that new version – not the previous ones so we kept leaving bits n pieces lying around. There were also a few cache folders for javascript etc beyond just the standard Smarty cache folder. Be ruthless and empty them all out. I hope this helps. Link to comment Share on other sites More sharing options...
birbal007 Posted July 14, 2016 Share Posted July 14, 2016 (edited) We set front office cookies life to 0 hours (as per screenshot). The setting is on the Administration / Preferences page. It initially didn't do anything because that only related to new cookies, and all the old ones had a lifespan set to a few hundred hours so they were still active. This was why we moved my client to a completely virgin browser without any login legacy. Additionally, I see we are running the site with friendly URLs off and absolutely every scrap of caching turned off. On that topic, we found caching caused a few problems as well. It seemed to be remembering previous logins (possibly by IP address) because we'd been using multiple accounts for testing and my client was signing up customers on their behalves. Login as John and then a few pages later, we'd be automatically logged in as Mary. Log out, browse a few pages and we're magically back in as John. View order history and we'd be presented with Mary's orders. Reload the page and we see John's history – utter chaos! (and of course this is all happening on the client's laptop so there was no hiding it) If you do this, make sure you delete the cache manually. We did an update of PrestaShop and deleting cache only deleted the cache from that new version – not the previous ones so we kept leaving bits n pieces lying around. There were also a few cache folders for javascript etc beyond just the standard Smarty cache folder. Be ruthless and empty them all out. I hope this helps. no its not helping. i tried everything. sets friendly url off, deleted smarty folder in cache folder, Check the cookie's IP address to No in administration>preferences, Lifetime of front office cookies 0 hours, cleared browser history, all cookies and then tried to logout. and guess what?? it still not working Edited July 14, 2016 by birbal007 (see edit history) Link to comment Share on other sites More sharing options...
Impasto Posted July 14, 2016 Share Posted July 14, 2016 (edited) Sorry, I genuinely feel your pain. And STILL no PrestaShop representatives even trying to solve your problem. Perhaps create a new post and reference back to this discussion. Maybe being classified as "Solved" means it's being ignored? Though with 12 replies and 2777 views, this thread is one of the hottest in this forum. Surely someone MUST have noticed it by now? Edited July 14, 2016 by Impasto (see edit history) Link to comment Share on other sites More sharing options...
gabrielio Posted September 25, 2016 Share Posted September 25, 2016 If anyone is still looking for a solution, here it is: Step 1: for user to be able to log out, the logout link should be this one: http://www.example.com/my-account/?mylogout= instead of this one http://www.example.com/?mylogout= as mentioned here: https://www.prestashop.com/forums/topic/515637-customers-cant-log-out/?p=2286273 Step 2: for getting that link you should create a 301 redirect and you can do that following the steps form this post: https://www.prestashop.com/forums/topic/387556-editing-htaccess-for-301-redirects-to-new-site-urls/?p=1903665 It worked for me, hope it helps anybody else looking for the solution. 2 Link to comment Share on other sites More sharing options...
DiverseSolution Posted October 10, 2016 Share Posted October 10, 2016 Hi guys , i just solved it by adding this line into the .htaccess file : ExpiresByType text/html "access plus 0 seconds" In my case the log out issue started after i activated mod.expires ....! so try it Link to comment Share on other sites More sharing options...
Jagotic Posted April 22, 2017 Share Posted April 22, 2017 Hi guys , i just solved it by adding this line into the .htaccess file : ExpiresByType text/html "access plus 0 seconds" In my case the log out issue started after i activated mod.expires ....! so try it Didn't work for me 1 Link to comment Share on other sites More sharing options...
ricardo21ferreira Posted January 23, 2018 Share Posted January 23, 2018 On 9/25/2016 at 12:08 PM, gabrielio said: If anyone is still looking for a solution, here it is: Step 1: for user to be able to log out, the logout link should be this one: http://www.example.com/my-account/?mylogout= instead of this one http://www.example.com/?mylogout= as mentioned here: https://www.prestashop.com/forums/topic/515637-customers-cant-log-out/?p=2286273 Step 2: for getting that link you should create a 301 redirect and you can do that following the steps form this post: https://www.prestashop.com/forums/topic/387556-editing-htaccess-for-301-redirects-to-new-site-urls/?p=1903665 It worked for me, hope it helps anybody else looking for the solution. it works ! Link to comment Share on other sites More sharing options...
electriz Posted May 25, 2018 Share Posted May 25, 2018 On 25.09.2016 at 1:08 PM, gabrielio said: If anyone is still looking for a solution, here it is: Step 1: for user to be able to log out, the logout link should be this one: http://www.example.com/my-account/?mylogout= instead of this one http://www.example.com/?mylogout= as mentioned here: https://www.prestashop.com/forums/topic/515637-customers-cant-log-out/?p=2286273 Step 2: for getting that link you should create a 301 redirect and you can do that following the steps form this post: https://www.prestashop.com/forums/topic/387556-editing-htaccess-for-301-redirects-to-new-site-urls/?p=1903665 It worked for me, hope it helps anybody else looking for the solution. Thanks! It works Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now