Jump to content

customers can't log out


blankstore
 Share

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 2

Share this post


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

Share this post


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

Share this post


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

Share this post


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

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

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

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

  • 3 weeks later...
  • 2 months later...

Having the same problem. Made a child theme ( see the how-to here) and then added this code

//sends the user to $url - in this case '/forums/' function rw_logout ($redirect_to) { $url='/forums/' ; $redirect_to = '<a href="' . wp_logout_url( $url ) . '" class="button logout-link">' . esc_html__( 'Log Out', 'bbpress' ) . '</a>' ; return $redirect_to ; } add_filter ('bbp_get_logout_link', 'rw_logout') ;

as proposed here but it didn’t work.

Edited by MisterJokar (see edit history)

Share this post


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

×
×
  • Create New...

Important Information

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