Jump to content

Admin Login Timeout


Recommended Posts

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 by selectshop.at (see edit history)
  • Like 1
Link to comment
Share on other sites

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

  • 1 year later...

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

  • 1 year later...
  • 1 month later...
  • 2 weeks later...

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

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.
  • Like 6
  • Thanks 2
Link to comment
Share on other sites

  • 2 weeks later...

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

  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...