Jump to content

[SOLVED] Can't Logout of frontend shop unless I clear cookies. Help please


Recommended Posts

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 by ptlhost (see edit history)
Link to comment
Share on other sites

  • 9 months later...
  • 1 year later...
  • 1 year later...
  • 2 months later...

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

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

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

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 by birbal007 (see edit history)
Link to comment
Share on other sites

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 by Impasto (see edit history)
Link to comment
Share on other sites

  • 2 months later...

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.

  • Like 2
Link to comment
Share on other sites

  • 3 weeks later...
  • 6 months later...

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  :(

  • Like 1
Link to comment
Share on other sites

  • 9 months later...
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

  • 4 months later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...