immaculate Posted August 4, 2014 Share Posted August 4, 2014 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 More sharing options...
vekia Posted August 4, 2014 Share Posted August 4, 2014 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 More sharing options...
immaculate Posted August 5, 2014 Author Share Posted August 5, 2014 (edited) Hi Vekia, I haven't set the $expire param value. What value to set and where to set? Kindly help me. Thanks. Edited August 5, 2014 by immaculate (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 5, 2014 Share Posted August 5, 2014 in back office under administration > preferences there is a field to define cookie lifetime Link to comment Share on other sites More sharing options...
immaculate Posted August 5, 2014 Author Share Posted August 5, 2014 Hi Vekia, I am using Prestashop1.6.0.6. I couldnt find the cookie lifetime field. Could you please let me know vekia. Thanks for your support. Thanks. Link to comment Share on other sites More sharing options...
vekia Posted August 5, 2014 Share Posted August 5, 2014 open this section: there should be an option to: Link to comment Share on other sites More sharing options...
immaculate Posted August 5, 2014 Author Share Posted August 5, 2014 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 More sharing options...
ozcor Posted August 7, 2014 Share Posted August 7, 2014 (edited) 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 August 7, 2014 by ozcor (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts