Jump to content

customers can't log out


blankstore

Recommended Posts

Hey,

customers can't log out with their accounts. I tested it with google chrome and mozilla firefox. After hitting the logout button I'm still logged in my customer account.

 

What can I do? 6 days ago, I reported it via bug tracker. but there's no answer within today.

 

Does anybody got an answer? Or can help me with this issue?

 

Thank you. David

 

my shop version is: 1.6.1.4

Edited by blankstore (see edit history)
Link to comment
Share on other sites

I got the code from the forum, but sorry could not find url to refer back to the person who gave the code.

 

In .htaccess

 

I insert this code at the bottom and clear cache, it solved logout issue.

<IfModule mod_expires.c>
ExpiresDefault "access plus 1 days"
ExpiresByType text/html "access plus 0 minutes"
</IfModule>

hope it helps..

Edited by sseleraci (see edit history)
  • Like 2
Link to comment
Share on other sites

  • 6 months later...

 

I noticed something: At the moment my logout-URL looks this way: https://www.blankstore.de/?mylogout=

 

If I change it to this: https://www.blankstore.de/mein-konto/?mylogout= I'm logged out.

 

So I created an redirect with my redirect module and it works. Now customers can logout again.

 

Maybe it's not the best method, but it works.

 

 

Thaks a lot for the link tip, i did not knew about adding my-account in the link and i searched for this solution for a long time: So for those that are still looking to solve the problem the url for logout should look like this http://www.example.com/my-account/?mylogout=

 

For redirect, if you do not have any module use the solution from this link 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 a solution to this problem.

Link to comment
Share on other sites

  • 1 year later...
On 3/22/2016 at 11:45 PM, sseleraci said:

Thank you very much. It worked for my Prestashop 1.7.4

 

I got the code from the forum, but sorry could not find url to refer back to the person who gave the code.

 

In .htaccess

 

I insert this code at the bottom and clear cache, it solved logout issue.


<IfModule mod_expires.c>
ExpiresDefault "access plus 1 days"
ExpiresByType text/html "access plus 0 minutes"
</IfModule>

hope it helps..

 

 

 

  • Thanks 1
Link to comment
Share on other sites

  • 6 months later...
On 3/23/2016 at 9:45 AM, sseleraci said:

I got the code from the forum, but sorry could not find url to refer back to the person who gave the code.

 

In .htaccess

 

I insert this code at the bottom and clear cache, it solved logout issue.


<IfModule mod_expires.c>
ExpiresDefault "access plus 1 days"
ExpiresByType text/html "access plus 0 minutes"
</IfModule>

hope it helps..

This work like chrm you dont need to copy whole code just look for this portion in htaccess and copy thesre twwo lines only

ExpiresByType text/html "access plus 0 minutes"

ExpiresDefault "access plus 1 days"

Link to comment
Share on other sites

  • 2 weeks later...
On 3/23/2016 at 5:45 AM, sseleraci said:

I got the code from the forum, but sorry could not find url to refer back to the person who gave the code.

 

In .htaccess

 

I insert this code at the bottom and clear cache, it solved logout issue.


<IfModule mod_expires.c>
ExpiresDefault "access plus 1 days"
ExpiresByType text/html "access plus 0 minutes"
</IfModule>

hope it helps..

customers can't log out with their accounts. I tested it with google chrome and mozilla firefox. After hitting the logout button I'm still logged in my customer account.

Link to comment
Share on other sites

1 minute ago, CORIYATSIA said:

customers can't log out with their accounts. I tested it with google chrome and mozilla firefox. After hitting the logout button I'm still logged in my customer account.

Are you  sure you are doing it correcly ? what version of PS u r using?

Link to comment
Share on other sites

  • 5 months later...
  • 3 weeks later...
  • 3 weeks later...

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...