Jump to content
blankstore

customers can't log out

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)

Share this post


Link to post
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 1

Share this post


Link to post
Share on other sites

 

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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"

Share this post


Link to post
Share on other sites
Posted (edited)
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 Xender Discord Omegle

 

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.

Edited by CORIYATSIA (see edit history)

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

Thanks for share sometimes i also face the issue on my website but i am using htaccess to solve the issue in my site omegla Copy the below htaccess code and try...

ExpiresDefault "access plus 1 days"

ExpiresByType text/html "access plus 0 minutes"

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More