blankstore Posted March 22, 2016 Share Posted March 22, 2016 (edited) 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 March 22, 2016 by blankstore (see edit history) Link to comment Share on other sites More sharing options...
sseleraci Posted March 23, 2016 Share Posted March 23, 2016 (edited) 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 March 23, 2016 by sseleraci (see edit history) 2 Link to comment Share on other sites More sharing options...
blankstore Posted March 24, 2016 Author Share Posted March 24, 2016 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. 2 Link to comment Share on other sites More sharing options...
gabrielio Posted September 25, 2016 Share Posted September 25, 2016 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 More sharing options...
Liliana M Posted August 25, 2018 Share Posted August 25, 2018 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.. 1 Link to comment Share on other sites More sharing options...
lovemyseo Posted March 6, 2019 Share Posted March 6, 2019 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 More sharing options...
CORIYATSIA Posted March 17, 2019 Share Posted March 17, 2019 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 More sharing options...
lovemyseo Posted March 17, 2019 Share Posted March 17, 2019 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 More sharing options...
Conductexam Posted August 28, 2019 Share Posted August 28, 2019 Thank you for share helpful information with Us. Above htaccess is really work..Thank you again. Admin Link to comment Share on other sites More sharing options...
heetteja Posted September 16, 2019 Share Posted September 16, 2019 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" Link to comment Share on other sites More sharing options...
ashishdol Posted October 2, 2019 Share Posted October 2, 2019 Thanks for sharing aider information with us. The htaccess code is really working! This code is very useful to me. Thank you again Admin 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