Jump to content

prestashop admin is often logging out


Recommended Posts

Hi,

 

After entering the admin section, it automatically logouts after selecting  any back office menu.

 

I have tried the following methods:

 

In classes/cookie.php.

 

1) I increased and descreased the cookie time
 

    Increased:

    $this->_expire = is_null($expire) ? time() + 1728000 : (int)$expire;

    Descrease:

    $this->_expire = is_null($expire) ? time() + 3600: (int)$expire;

 

But it did not resolved the logout issue in admin end.

 

What might be the solution to fix the same.

 

Kindly help me to fix this issue.

 

Expecting a favourable reply.

 

Thanks.

Immaculate.X

 

 

 
Link to comment
Share on other sites

 

1) I increased and descreased the cookie time

 

    Increased:

    $this->_expire = is_null($expire) ? time() + 1728000 : (int)$expire;

 

    Descrease:

    $this->_expire = is_null($expire) ? time() + 3600: (int)$expire;

 

But it did not resolved the logout issue in admin end.

and you changed also $expire param value? if not, prestashop will use this variable instead of value you increased

Link to comment
Share on other sites

Hi Vekia,

 

Thanks for the reply, I found the life time set cookies.

 

But i could see 480 hours set for (back office and front office field) , so it has been set for 20 days.But how its often logging out if the cookies time set to 480hours?

 

Kindly Help.

Link to comment
Share on other sites

Hi Vekia,

 

Thanks for the reply, I found the life time set cookies.

 

But i could see 480 hours set for (back office and front office field) , so it has been set for 20 days.But how its often logging out if the cookies time set to 480hours?

 

Kindly Help.

 

Sorry to crash your thread but I am having the same problem. I am unable to do any work as each time i configure or change anything in the backend and hit save the admin login screen pops up and I lose all the work..  I see that this has been a problem with many versions of prestashop but after searching here I couldn't find an answer.. :)  I hope someone can shed some light on this or I won't be able to use prestashop, which would be very disappointing..

 

UPDATE: I seem to have fixed the problem by simply entering a different cookie time out and saving.. I guess the default setting needed to be updated.

Edited by ozcor (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...