carbar Posted February 16, 2014 Share Posted February 16, 2014 Hi, How can I change Admin Login Timeout in the back-end. I'm new to Presta and while I'm scratching my head to find my way around, the session expires and WIP data is gone! Please help! Thanks Link to comment Share on other sites More sharing options...
Paulito Posted February 16, 2014 Share Posted February 16, 2014 Good morning What are the cookies set at? Back office > Administration > Preferences http://screencast.com/t/YXnsmSbRi Paul Link to comment Share on other sites More sharing options...
carbar Posted February 16, 2014 Author Share Posted February 16, 2014 It\s 480 as in your picture! I didn't assume it's related to timeout. Link to comment Share on other sites More sharing options...
Paulito Posted February 16, 2014 Share Posted February 16, 2014 Yes, thought that would be the case Have you tried a different browser to see if it still happens Paul Link to comment Share on other sites More sharing options...
selectshop.at Posted February 16, 2014 Share Posted February 16, 2014 (edited) 480 is enough time (480 hours !! = 20 days = about 2,9 weeks), better to shorten this, so if you are having problems with forced logout and 480 is set, please ask your provider if he is forcing logout on server with too short time. It's not a Prestashop problem, but should be a server problem. Edited February 16, 2014 by selectshop.at (see edit history) 1 Link to comment Share on other sites More sharing options...
carbar Posted February 16, 2014 Author Share Posted February 16, 2014 I use firefox and I never had a similar issue with the server. Does Presta track the ip address, because I switch between two different ISP's to connect to the net. Link to comment Share on other sites More sharing options...
Paulito Posted February 16, 2014 Share Posted February 16, 2014 Hello again The only reason I responded to your question was that I came across this problem whilst looking for something else. All I saw was: Reduce the cookie time Ask your host about time outs (as Dave has said) Empty all your cache (back office) smarty etc I have to say that I never found a solution in anything I read But, of course, I was looking for something else Paul Link to comment Share on other sites More sharing options...
carbar Posted February 23, 2014 Author Share Posted February 23, 2014 It seems like Prestashop is a very smart system! It\s not a timeout issue, logout occurs when the admin user IP address changes as security measure . Thanks for all feedbacks. Link to comment Share on other sites More sharing options...
vekia Posted February 23, 2014 Share Posted February 23, 2014 btw. you can switch off this IP checker feature under Administration > preferences tab in your back office 3 Link to comment Share on other sites More sharing options...
carbar Posted February 23, 2014 Author Share Posted February 23, 2014 Thanks for the info, I think it's a great feature against hackers, yet being parametric makes it even better. Link to comment Share on other sites More sharing options...
DanielLeng Posted December 3, 2015 Share Posted December 3, 2015 I have a static IP on my network and I am still getting this REALLY annoying timeout issue. Twice it has caused me to lose a LOT of work. My cookies have the same value as set by default - 480 and I am using Chrome as my browser. I am even hosting the site here myself so I am on the same network. Can anyone point me in the right direction please ? Link to comment Share on other sites More sharing options...
Mejaro Posted May 4, 2017 Share Posted May 4, 2017 I have the same issues, after 15min or less more, PS disconnect me. Help... Link to comment Share on other sites More sharing options...
cybernauta Posted June 11, 2017 Share Posted June 11, 2017 Same issue! PS 1.7.11 on locahost (so IP do not change!) After 15 minutes Back Office disconnect and requires new logon. Link to comment Share on other sites More sharing options...
ric3 Posted June 22, 2017 Share Posted June 22, 2017 I found the solution a month ago, but I just upgraded to 1.7.1.2 and I'm having the same issue again. I will post it here as soon as I find it again. I think it had to do with editing one of the files. Will report back. Link to comment Share on other sites More sharing options...
ric3 Posted June 22, 2017 Share Posted June 22, 2017 Found it. I had saved it in a file. Here's what I wrote (believe it was a copy paste from another thread: The default settings are 15 minutes, so the login is automatically terminated after 15 minutes of inactivity in the PrestaShop. This time can be easily adjusted in the following folder: classes / controller / AdminController .php Look for line 2288, where the following code is to be found: if ($this->context->cookie->last_activity + 900 < time()) { Changing 900 to 3600 increases the log-in period from 15 to 60 minutes. 6 2 Link to comment Share on other sites More sharing options...
fibo Posted July 7, 2017 Share Posted July 7, 2017 Hi. I've the same problem with Prestashop 1.16.1.14, resolved with this change.Thanks Found it. I had saved it in a file. Here's what I wrote (believe it was a copy paste from another thread: The default settings are 15 minutes, so the login is automatically terminated after 15 minutes of inactivity in the PrestaShop. This time can be easily adjusted in the following folder: classes / controller / AdminController .php Look for line 2288, where the following code is to be found: if ($this->context->cookie->last_activity + 900 < time()) { Changing 900 to 3600 increases the log-in period from 15 to 60 minutes. using Prestashop 1.16.1.14 1 Link to comment Share on other sites More sharing options...
marccollin Posted July 18, 2017 Share Posted July 18, 2017 Good job it works for me Marc Link to comment Share on other sites More sharing options...
speedcrash2013 Posted July 23, 2017 Share Posted July 23, 2017 it's ok! thanks ric3 Link to comment Share on other sites More sharing options...
Recommended Posts