projects Posted July 9, 2013 Share Posted July 9, 2013 Is there a way to logout the user after a certain time period or inactivity? By editing the cookies.php perhaps? Found a solution back from Prestashop 1.2 but doesn't seem compatible with 1.5.x Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 classes/cookies.php file you've got there: $this->_expire = is_null($expire) ? time() + 1728000 : (int)$expire; 1728000 seconds 1728000 = 20 days 1 Link to comment Share on other sites More sharing options...
projects Posted July 9, 2013 Author Share Posted July 9, 2013 Thanks a lot!! Link to comment Share on other sites More sharing options...
GiveSublime Posted July 9, 2013 Share Posted July 9, 2013 classes/cookies.php file you've got there: $this->_expire = is_null($expire) ? time() + 1728000 : (int)$expire; 1728000 seconds 1728000 = 20 days What will happen once you upgrade to a new version? Will this modification stay or get overwritten? Is there a more permanent solution to change the cookie duration? Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 you can create class override, then even after update the code will not be changed Link to comment Share on other sites More sharing options...
GiveSublime Posted July 9, 2013 Share Posted July 9, 2013 you can create class override, then even after update the code will not be changed Thanks for the prompt response... working on it Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now