Jump to content

[SOLVED] customer logout issue


NIP

Recommended Posts

I have this problem only in real site online. In localhost everything works fine.

 

Logout doesn't work properly. In some pages user is log out, and at the same time when user goes to the other page, he is in his profile, without to login again.

 

Anyone any ideas? It is Prestashop 1.5.5.0

I've tried to turn Friendly URLs on and off. Didn't help.

 

Thanks for help

Link to comment
Share on other sites

I'm sorry, but it didn't worked. I've tried just now.

 

I log in in to my account and try logout button / in the top right corner of the page / and nothing happens.

When I go back to the home, then I logout. And at some pages I'm in my account, at the other I'm log out.

 

In localhost, it doesn't seem to have this problem.

Link to comment
Share on other sites

i created test account in your store, and you're right, something doesnt work well there.

i've noticed that you use non-default theme, issues like this are related to the theme often.

can you, for test purposes, test log in / log out feature in default theme?

Link to comment
Share on other sites

I've found a solution. It was cache control issue. In .htaccess you have to add this lines:

ExpiresActive On
ExpiresDefault "access plus 1 days"
ExpiresByType text/html "access plus 0 minutes"

Now logout works just fine. Hope this will be useful for someone else with the same problem.

I'll try to rename the topic to SOLVED.

 

Thanks for your suggestions.

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

  • 1 year later...

I still cannot solve this problem, even if i add the expire mod on :(..

the problem seem to happen if i'm at work place, different computer sees the username which is signed in from another computer but cannot use the account, just the header which display the username.

when i'm at home, it seems to be working fine

Link to comment
Share on other sites

  • 1 year later...

I've found a solution. It was cache control issue. In .htaccess you have to add this lines:

ExpiresActive On
ExpiresDefault "access plus 1 days"
ExpiresByType text/html "access plus 0 minutes"

Now logout works just fine. Hope this will be useful for someone else with the same problem.

I'll try to rename the topic to SOLVED.

 

Thanks for your suggestions.

not working 

Link to comment
Share on other sites

this kind of problem must be treated individually because problem can be somewhere else, depending on may factors like shop configuration, host configuration etc.

 

so, case needs inspection

this is my second prestashop website.. i hadnt face this problem in first website.. but this is a big issue found in my current website. i found this problem when my site is almost complte

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