zhl86 Posted October 15, 2013 Share Posted October 15, 2013 Hi All, I'm using Prestashop 1.5.6 (newest version). And now I've issue that need assist from you all. Every time I login to prestashop admin page (Back Office) and select any menu (like 'Product' or 'Module'), its always redirect me automatically to login page. Tried to sign in again, and its redirect me out again. Some relosution that I've tried: 1. I've tested using all browser (all have the same issue): - Mozilla Firefox - Chrome - IE - Safari 2. Clear browser chached and cookies. 3. Uninstall prestashop and install again. 4. Using new database. All above step are not work on me. Can you all help me to find where is the problem? Thanks before. Regards. 1 Link to comment Share on other sites More sharing options...
jacksleep Posted October 15, 2013 Share Posted October 15, 2013 Same problem here, not solved yet. Maybe related to .htaccess misconfiguration? 1 Link to comment Share on other sites More sharing options...
zhl86 Posted October 15, 2013 Author Share Posted October 15, 2013 Hi, thanks for your reply. I don't think there is problem related to .httaccess file. There is no issue on this file. Any advise? 1 Link to comment Share on other sites More sharing options...
vekia Posted October 15, 2013 Share Posted October 15, 2013 when you're logged in and hit just "refresh" (F5) you're also redirected to login page again? Link to comment Share on other sites More sharing options...
zhl86 Posted October 15, 2013 Author Share Posted October 15, 2013 Yes, its also redirected to login page again. Any suggestion? Link to comment Share on other sites More sharing options...
vekia Posted October 15, 2013 Share Posted October 15, 2013 it looks like you've got issue with cookie / session on your host. the same problems you've got in front office? for example add something to cart, then refresh website, cart is empty then? Link to comment Share on other sites More sharing options...
SmartDataSoft Posted October 20, 2013 Share Posted October 20, 2013 (edited) Hello, Vekia How you told that it is problem on host. I have face this many client site. When i select any menu it signout me. Different client i have face this. Yesterday i have to login a clinet site more than 20 times to setup a theme. Where the told that he never face this. I am really shocked what is happening. It never happen in my sever. But lots of client i have send message on ticket system about this to logout . Where it take 5 min to set up a theme by one click i have to wast 1 hours. Some time it work and i can able to got installation 3 step but then again sing out Edited October 20, 2013 by smartdatasoft (see edit history) Link to comment Share on other sites More sharing options...
SmartDataSoft Posted October 20, 2013 Share Posted October 20, 2013 See this video what i show , this is one client site video. http://www.screenr.com/ggzH Link to comment Share on other sites More sharing options...
maximo88 Posted October 25, 2013 Share Posted October 25, 2013 (edited) Me the same.. It appeared on 1.5.5 My domain is www.comercialandalucia.es and the error is continous. But my trick is accesing the domain of my webhost www.doodmide.factoriadigital.com/admin123 With this access, I never go out. But with the canonical url. EXIT EVER What about this? http://www.gibni.com/solved-prestashop-backoffice-login-refresh Edited October 25, 2013 by maximo88 (see edit history) Link to comment Share on other sites More sharing options...
SmartDataSoft Posted October 25, 2013 Share Posted October 25, 2013 i have face this things for different client site. but not sure what is the issue. @vekia do you know any solution. 1 Link to comment Share on other sites More sharing options...
maximo88 Posted October 25, 2013 Share Posted October 25, 2013 I have a redirect on htcaccess without www to --> www <IfModule mod_rewrite.c> SetEnv HTTP_MOD_REWRITE On RewriteEngine on RewriteCond %{HTTP_HOST} ^www.comercialandalucia.es$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] Link to comment Share on other sites More sharing options...
SmartDataSoft Posted October 25, 2013 Share Posted October 25, 2013 is that solve the problem or it will be batter people will login with www not http://mysite.com Link to comment Share on other sites More sharing options...
Gregory Roussac Posted October 25, 2013 Share Posted October 25, 2013 Dear all, There can be many reasons for cookie logout. I tried to give clues on the track http://forge.prestashop.com/browse/PSCFV-10337?focusedCommentId=78920&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-78920 specially the option ""Check the IP address on the cookie" in preferences tab. Best regards 2 Link to comment Share on other sites More sharing options...
SmartDataSoft Posted October 25, 2013 Share Posted October 25, 2013 Gregory Roussac thank you very much you post reply. Here is what we face . As we are web developer company and have to work many clinet on many site from different country , and differnet server. once i got there access from our support ticket, i try to login. i can access page and when i try to do any operation it logout me. after several tried i am able to do that. But already my time is lost. So i told client to fix that by there self and give direction. Link to comment Share on other sites More sharing options...
Gregory Roussac Posted October 25, 2013 Share Posted October 25, 2013 Hi, Which version do you use ? Can you please send me by email a temporary credentials to a test back office with ftp credentials ? Regards Link to comment Share on other sites More sharing options...
SmartDataSoft Posted October 25, 2013 Share Posted October 25, 2013 It is 1.5.6 and i can't provide that because that is our customer site, and they have no permission to give that. @maximo88 you can provide Gregory Roussac your access by PM so that he can debug. Gregory Roussac i have setup our shop on a2hosting. I have not face this kind of issue even in my localhost. All i have face different client site who are from different country. Link to comment Share on other sites More sharing options...
SmartDataSoft Posted October 25, 2013 Share Posted October 25, 2013 @Gregory Roussac i just install a demo site for you on my server for you to test. I send you access of back office on PM. Inform me if you need any other information. Link to comment Share on other sites More sharing options...
Gregory Roussac Posted October 25, 2013 Share Posted October 25, 2013 Hi, Yes please logins to this back office, email and password. And an temporary ftp account please. Regards Link to comment Share on other sites More sharing options...
stevenpresta Posted October 27, 2013 Share Posted October 27, 2013 (edited) have the same problem here, i just created a new site with the latets prestashop, every time when i choose a page on back office, it took me to the log in page, then i need to put the email address and pass word to login again, sounds like many guys have this problem, hope there is a fix. thanks. Update: it's strange that this problem has been fixed by itself now, i guess it is just the cookie or proxy problem, thanks Edited October 27, 2013 by stevenpresta (see edit history) Link to comment Share on other sites More sharing options...
Gregory Roussac Posted October 27, 2013 Share Posted October 27, 2013 (edited) Hi, Do you have the same thing in front office ? I could not reproduce on smartdatasoft test Back office, i disabled for him "Check the IP address on the cookie" option in Preferences in back office but I believe he did not find the time to answer yet. Can you please send me by email a temporary credentials to your back office ? Regards Edited October 27, 2013 by Gregory Roussac (see edit history) Link to comment Share on other sites More sharing options...
stevenpresta Posted October 27, 2013 Share Posted October 27, 2013 (edited) have sent you my site info to your email, just take a look, just as i said i don't know why it was fixed by itself automatically, but i noticed that my ip address changed during that time, and the problem was fixed after the ip address changed and also i used the proxy sometimes. hope these info help, and also have tested my front office, everything is fine for now. Update: just have done some more tests and i found everytime i switch my proxy (SSH) to open or closed, the problem happened, so i guess it is just the proxy or ip or cache problem, hope it helps. Edited October 27, 2013 by stevenpresta (see edit history) Link to comment Share on other sites More sharing options...
Gregory Roussac Posted October 27, 2013 Share Posted October 27, 2013 Hi again, Did you disable the option "Check the IP address on the cookie" in preferences ? Regards Link to comment Share on other sites More sharing options...
stevenpresta Posted October 27, 2013 Share Posted October 27, 2013 no i didn't Link to comment Share on other sites More sharing options...
Gregory Roussac Posted October 27, 2013 Share Posted October 27, 2013 Hi, If you have a regulary changing Ip from your provider, you can disable this check. This should avoid you been logged out when your IP is changing. If you can not consult this page, i'll do it in your back office for you, so tell me by email. Regards 1 Link to comment Share on other sites More sharing options...
stevenpresta Posted October 27, 2013 Share Posted October 27, 2013 hi sorry, maybe i was wrong when you asked whether i disabled the option "Check the IP address on the cookie" in preferences, i just checked again and found the settting is no which is the default setting. Link to comment Share on other sites More sharing options...
Gregory Roussac Posted October 27, 2013 Share Posted October 27, 2013 Well you sent me your credentials, so I disabled it for you. Regards Link to comment Share on other sites More sharing options...
stevenpresta Posted October 27, 2013 Share Posted October 27, 2013 oh, i see, thanks, no problem now, will notice whether i still have this problem later. thanks hope the the other guys can solve it with this setting. Link to comment Share on other sites More sharing options...
SmartDataSoft Posted October 27, 2013 Share Posted October 27, 2013 @Gregory Roussac when i send me that information. at that time i have facing same problem. But strange things is that today i have login many times. there is not logut problem. Not where is the issue. I am also searching a solution for people. Link to comment Share on other sites More sharing options...
Gregory Roussac Posted October 27, 2013 Share Posted October 27, 2013 Well you sent me by pm your credentials too and I answered you about this option in preferences, and I disabled it for you too. Regards Link to comment Share on other sites More sharing options...
SmartDataSoft Posted October 27, 2013 Share Posted October 27, 2013 No after you change the information i didn't able to login also. So i stop to work. From today it work Link to comment Share on other sites More sharing options...
rxsy2002 Posted November 28, 2013 Share Posted November 28, 2013 Can anyone confirmed that disabling the option "Check the IP address on the cookie" in preferences will solve the issue of auto log out of admin page? Swee Hing Link to comment Share on other sites More sharing options...
marcis Posted November 28, 2013 Share Posted November 28, 2013 Same problem, logout issues @ back office with PS1.5.6. I suspect it's something to do with being logged also at front office & cookies. Link to comment Share on other sites More sharing options...
Gregory Roussac Posted November 28, 2013 Share Posted November 28, 2013 Hi, If you are both logged out in front and in back this is a different issue. Try this method http://forge.prestashop.com/browse/PSCFV-10487?focusedCommentId=77712&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-77712 Regards Link to comment Share on other sites More sharing options...
rxsy2002 Posted November 29, 2013 Share Posted November 29, 2013 Disabling the option "Check the IP address on the cookie" in preferences resolved the issue of auto log out of admin page for me. Swee Hing Link to comment Share on other sites More sharing options...
Macota Lorin Posted May 30, 2014 Share Posted May 30, 2014 I had the same problem and it began without warning. I asked my IT firm to check my login credentials and from where they loged in it worked without any problems but when I tried again to login, after 1 min I whas out. I disabled "Check the IP address on the cookie" in preferences as recommended. After I did this, my problem was solved! In order to check if that was the problem, I enabled the option again and after 1 min I was logged out. PrestaShop™ 1.5.5.0 Link to comment Share on other sites More sharing options...
nanogioia Posted July 8, 2014 Share Posted July 8, 2014 Hi I am having the same problem, where can I find the option "Check the IP address on the cookie" in order to disable it, sorry im lost, which preferences are you making reference to? Thanks Link to comment Share on other sites More sharing options...
Macota Lorin Posted July 9, 2014 Share Posted July 9, 2014 Hi I am having the same problem, where can I find the option "Check the IP address on the cookie" in order to disable it, sorry im lost, which preferences are you making reference to? Thanks Hello, You can find that option in the menu Administration -> Preferences Hope the solution works for you to. Link to comment Share on other sites More sharing options...
ginoshear Posted July 23, 2014 Share Posted July 23, 2014 Hi there, I'm facing the same issue of being logged out of the admin panel. I can't even disable the 'Check the cookie's IP address' option as I was logged out every time I tried to click the save button. Any advise on how to resolve the matter? Thanks. Link to comment Share on other sites More sharing options...
Macota Lorin Posted July 24, 2014 Share Posted July 24, 2014 Hi there, I'm facing the same issue of being logged out of the admin panel. I can't even disable the 'Check the cookie's IP address' option as I was logged out every time I tried to click the save button. Any advise on how to resolve the matter? Thanks. Hello, Try to connect from a diferent network. If you know a internet connection with a static IP, then connect from that network and disable the option. Your IP is changing and that is why you are logged out so fast. Link to comment Share on other sites More sharing options...
ginoshear Posted July 28, 2014 Share Posted July 28, 2014 My admin panel is working fine now.Thanks! Link to comment Share on other sites More sharing options...
St055 Posted July 29, 2014 Share Posted July 29, 2014 I had the same issue with 1.6.0.5 I solved it by removing ip -> cookie. But what about sacurity? Now someone can steal us the cookie and login!... 1 Link to comment Share on other sites More sharing options...
vekia Posted July 30, 2014 Share Posted July 30, 2014 decrease cookie life time and turn on ip check :-) this is how i work with BO Link to comment Share on other sites More sharing options...
St055 Posted July 30, 2014 Share Posted July 30, 2014 But we just said we have turn ip check off... Link to comment Share on other sites More sharing options...
vekia Posted July 30, 2014 Share Posted July 30, 2014 yes and you're worried about security so if you're worried - put this option back on and decrease cookie lifetime and if you will not be able to log in - you will not have to wait too long Link to comment Share on other sites More sharing options...
St055 Posted July 30, 2014 Share Posted July 30, 2014 Very usefull answer, thank you. Link to comment Share on other sites More sharing options...
Bilegt Posted October 6, 2014 Share Posted October 6, 2014 Hey guys, is it possible to set cookie time for 5 mins? In the cookie preferences, default time was 480 hours, minimum you can set was 1 hour, which is still too long. Any ideas? I have changed in SQL file by manually from 1 to 0.12, but there were no effect. Link to comment Share on other sites More sharing options...
rcking Posted November 3, 2014 Share Posted November 3, 2014 I am having this problem with 1.6.8 as well. Being currently in HK, back office works fine for me on PC. But another user need work with BO from China and he faces the log off problem after every click in BO. 1. In Preferences/General there is nothing about IP check, is it now named ad "Increase Front Office security"? (but this problem happen only in BO, not FO) 2. Is this setting user related? 3. Did anybody found a way how to solve this? /and we are using CloudFlare/ Btw. I am not able log in into BO from my cell phone (ANDROID KitKat) at all, only see rotating circle and than system return me back to login page without any notice. Link to comment Share on other sites More sharing options...
Gregory Roussac Posted November 4, 2014 Share Posted November 4, 2014 1. In Preferences/General there is nothing about IP check, is it now named ad "Increase Front Office security"? (but this problem happen only in BO, not FO) Hi, Administration > Preferences > second option ? Regards Link to comment Share on other sites More sharing options...
rcking Posted November 4, 2014 Share Posted November 4, 2014 well, 1. it's named "Increase Front Office security" 2. we have problem with BO 3. doesn't matter if this option is ON or OFF, problem persist.. Link to comment Share on other sites More sharing options...
Gregory Roussac Posted November 4, 2014 Share Posted November 4, 2014 Please see enclosed. Second option. Regards 1 Link to comment Share on other sites More sharing options...
rcking Posted November 4, 2014 Share Posted November 4, 2014 OH!!Yes, you are right. I always serch under PREFERENCES, not ADMINISTRATION - PREFERENCES so problem seems solved now, thank you! Link to comment Share on other sites More sharing options...
bazalto Posted March 14, 2015 Share Posted March 14, 2015 (edited) hello, does any body know how i can manually set "check the cookie's ip address" to "no" by editing a config file. because every time i do change it from Administration >> Preferences & try to save .. i found my self logged out i have been in this for more than an hour and get tired. Edited March 14, 2015 by bazalto (see edit history) Link to comment Share on other sites More sharing options...
janjackel Posted April 5, 2015 Share Posted April 5, 2015 (edited) Hi guys, How are you all doing? So, I am having problems, I am being logged out automatically and repeatedly when I am in the BO, I am fed up and I have spent 2 days browsing and trying different solutions, all to no avail. I have tried the following: 1. BO > Admin > preferences > disabled the cookie option. The problem persists 2. I have edited the cookie.php (As suggested on threads I saw on different forums) The problem persists 3. Before I log in to the BO I select the option to stay connected, doesn´t work. The problem persists 4. Cookie settings on all my different browsers are ok. The problem persists 5. I played around with the session limit in BO > Admin > preferences > 450 hours. The problem persists 6. Different caching options. (Obviously no luck, but I had to try) 7. Opened an account on Cloudflare, someone recommended it to me, once again, just to try, and the problem persists. 8. Multiple fresh Prestashop installs. The problem persists I have noticed that when I add a product to the cart, and then I refresh, the cart empties on it`s own, now I can live with having to log in 20 times per hour (sarcasm)...... but the product vanishing from the cart when you refresh the page is an important problem, somehow I think these two problems are somehow connected. Any other suggestions apart from the list that I previously mentioned? I am using the latest Prestashop Version available for downloading. Thanks Edited April 7, 2015 by janjackel (see edit history) Link to comment Share on other sites More sharing options...
Larry Sainte-Marie Posted May 15, 2015 Share Posted May 15, 2015 (edited) Hi guys, How are you all doing? So, I am having problems, I am being logged out automatically and repeatedly when I am in the BO, I am fed up and I have spent 2 days browsing and trying different solutions, all to no avail. I have tried the following: 1. BO > Admin > preferences > disabled the cookie option. The problem persists 2. I have edited the cookie.php (As suggested on threads I saw on different forums) The problem persists 3. Before I log in to the BO I select the option to stay connected, doesn´t work. The problem persists 4. Cookie settings on all my different browsers are ok. The problem persists 5. I played around with the session limit in BO > Admin > preferences > 450 hours. The problem persists 6. Different caching options. (Obviously no luck, but I had to try) 7. Opened an account on Cloudflare, someone recommended it to me, once again, just to try, and the problem persists. 8. Multiple fresh Prestashop installs. The problem persists I have noticed that when I add a product to the cart, and then I refresh, the cart empties on it`s own, now I can live with having to log in 20 times per hour (sarcasm)...... but the product vanishing from the cart when you refresh the page is an important problem, somehow I think these two problems are somehow connected. Any other suggestions apart from the list that I previously mentioned? I am using the latest Prestashop Version available for downloading. Thanks Same here tried all of those except #7 and #8. my front office seems ok, but back office logs out every few mins despite any cookie or session setting accessible via the BO. frustrating. Edited May 15, 2015 by Larry Sainte-Marie (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts