Jump to content
carbar

Admin Login Timeout

Recommended Posts

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 :ph34r:

Share this post


Link to post
Share on other sites

It\s 480 as in your picture!

I didn't assume it's related to timeout.

Share this post


Link to post
Share on other sites

Yes, thought that would be the case

Have you tried a different browser to see if it still happens

Paul

Share this post


Link to post
Share on other sites

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
  • Like 1

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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 :rolleyes: .

Thanks for all feedbacks.

Share this post


Link to post
Share on other sites

btw. you can switch off this IP checker feature under Administration > preferences tab in your back office

6HHuY5r.png

  • Like 3

Share this post


Link to post
Share on other sites

Thanks for the info, I think it's a great feature against hackers, yet being parametric makes it even better.

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

I have the same issues, after 15min or less more, PS disconnect me.

Help...

Share this post


Link to post
Share on other sites

Same issue!

 

PS 1.7.11 on locahost (so IP do not change!)

 

After 15 minutes Back Office disconnect and requires new logon.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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 3

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More