edogatica Posted May 27, 2016 Share Posted May 27, 2016 i have a problem with the login and logout of my clients, when i write my email and my password the page should be redirect to my account page, but doesn't work only stay in the login page, also when i logout my name and data stills in the page when should be close the session. help me please Link to comment Share on other sites More sharing options...
Knowband Plugins Posted May 28, 2016 Share Posted May 28, 2016 It seems some server cache issue. Have you edited your htaccess file recently? When you click on login button after entering email id and password, it shows the same login page, right? Now try to refresh the page, it will show you account page and will also logged you in. Such issue may arise because of HTML cache. Link to comment Share on other sites More sharing options...
El Patron Posted May 28, 2016 Share Posted May 28, 2016 i have a problem with the login and logout of my clients, when i write my email and my password the page should be redirect to my account page, but doesn't work only stay in the login page, also when i logout my name and data stills in the page when should be close the session. help me please contact hosting and see if they are running 'varnish' cache or other. If so, then tell them you are having issue with hosting cache and running PrestaShop. Link to comment Share on other sites More sharing options...
edogatica Posted May 30, 2016 Author Share Posted May 30, 2016 i've installed the page locally and the login works. yesterday the page works good but today again fail the login Link to comment Share on other sites More sharing options...
edogatica Posted May 30, 2016 Author Share Posted May 30, 2016 contact hosting and see if they are running 'varnish' cache or other. If so, then tell them you are having issue with hosting cache and running PrestaShop. i spoke with the hosting and i said that clean the cache. they deleted the cache and worked again 2 Link to comment Share on other sites More sharing options...
emartinez0131 Posted December 7, 2016 Share Posted December 7, 2016 I found something related that I believe might solve the issue. Check out the info at: https://www.prestashop.com/forums/topic/141152-solved-logout-doesnt-work-when-cache-and-rewrite-are-activated-any-real-fix/?p=677772 I discovered by trial and error that the code below has to be placed at the end of my .htaccess file. In case you don't want to research the article I listed above, here's the code I used: <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 1 seconds" ExpiresByType text/html "access plus 1 seconds" 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> Most of the code above I derived from the article at: https://www.prestashop.com/forums/topic/398255-loginlogout-not-working-without-page-refresh/ I used the info provided by msienc. I hope this helps. --Ed 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