pwizzard Posted January 28, 2015 Share Posted January 28, 2015 (edited) 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 January 28, 2015 by pwizzard (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 28, 2015 Share Posted January 28, 2015 are you able to switch to default theme (for test purposes only) and check if there is the same problem? Link to comment Share on other sites More sharing options...
pwizzard Posted January 29, 2015 Author Share Posted January 29, 2015 (edited) 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 January 29, 2015 by pwizzard (see edit history) Link to comment Share on other sites More sharing options...
pwizzard Posted February 3, 2015 Author Share Posted February 3, 2015 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 More sharing options...
pwizzard Posted February 4, 2015 Author Share Posted February 4, 2015 Hi Found the fix for this from 2011, shame it hasn't been added to the core as suggested. https://www.prestashop.com/forums/topic/141152-solved-logout-doesnt-work-when-cache-and-rewrite-are-activated-any-real-fix/?p=677772 Link to comment Share on other sites More sharing options...
Impasto Posted May 16, 2016 Share Posted May 16, 2016 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 More sharing options...
misenec Posted November 4, 2016 Share Posted November 4, 2016 (edited) 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 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: Cache-Control: max-age=1 Check if problem with log/unlog is live.:-) Edited November 4, 2016 by misenec (see edit history) 1 Link to comment Share on other sites More sharing options...
jetx Posted March 8, 2017 Share Posted March 8, 2017 Just started having this issue sfter running an htaccess module I bought in addons. Annoying, and took a while to figure it out. Thanks misenec. Link to comment Share on other sites More sharing options...
iamtheboss Posted April 30, 2019 Share Posted April 30, 2019 Same problem 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