Jump to content

Login/Logout not working without page refresh


Recommended Posts

Hi

 

I've upgraded to 1.6.0.11 and all seems to be working OK other than I now have a problem with the sites login and logout.

 

Login works Ok but when I select Logout nothing seems to happen only on a page refresh does the page display the user as being logged out.

 

I'm using a purchased template but the developer is telling me its a Prestashop issue rather than template.

 

This is extremely frustrating as its the last issue before my site can go live.

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

Hi, thanks for responding.

 

I've changed the theme to the Prestashop default theme and the problem is still there.

 

Searching through these forums I see this is a recurring problem with lots of different solutions, I've tried many of them but nothing seems to work.

 

Not sure where to go with this, would I be correct by changing the theme it points to a Prestashop issue rather than a theme problem?

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

Hi

 

I've now created a brand new clean installation of Prestashop 1.6.0.11 and surprisingly the problem with the login/logout is still happening.

 

Could this be a problem with the hosting, its not cheap hosting but they don't have a lot of experience with Prestashop, is there something they need to allow to make this work?

 

They tell me that they fulfil your basic hosting requirements but there must be something else.

 

I've also done a clean installation of Prestashop on my local machine and that works Ok

 

Moving the hosting would be a bit of a hassle as I have a package with them where I run several other non Prestashop sites.

Link to comment
Share on other sites

  • 1 year later...

This feels identical to the problem I posted last week for Prestashop v1.6

 

No reply to my problem, let alone a solution.

 

I'm starting to think this is a serious problem that is recurring through multiple versions of Prestashop and no one has a solution for it.

Link to comment
Share on other sites

  • 5 months later...

Hi all.

I have the similar problem. If you check header loaded document in developers tools (for chrome ctrl+shift+i ) => network => doc (refresh page), and in headers this doc are something about

  1. Cache-Control:
    max-age=7200

So my solution can help. Add to root/.htaccess this code:

<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType text/html "access plus 1 seconds"
  ExpiresByType image/gif "access plus 120 minutes"
  ExpiresByType image/jpeg "access plus 120 minutes"
  ExpiresByType image/png "access plus 120 minutes"
  ExpiresByType text/css "access plus 60 minutes"
  ExpiresByType text/javascript "access plus 60 minutes"
  ExpiresByType application/x-javascript "access plus 60 minutes"
  ExpiresByType text/xml "access plus 60 minutes"
</IfModule>

Idk if is ignore some options from presta or rewrite it apache settings or something other, but I solve it with this.

Check again header and if have now in doc header for doc this:

  1. Cache-Control:
    max-age=1

Check if problem with log/unlog is live.:-)

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

  • 4 months later...
  • 2 years 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...