Designinfo Posted July 10, 2015 Share Posted July 10, 2015 I want the customer to automatically be logged out after a certain time period . How do I set the time period to 1 hour for example. I am not a coder please guide me meticulously in which file to make the changes and also which lines of the coded file has to be modified. Basically any person who logs in , after 1 hour he should be logged out and should be compelled to relog in to access his private data/ orders. Any help will be appreciated. Link to comment Share on other sites More sharing options...
NemoPS Posted July 10, 2015 Share Posted July 10, 2015 Should be possible from the bohttp://screencast.com/t/jaFGHPlRS0 Link to comment Share on other sites More sharing options...
Designinfo Posted July 11, 2015 Author Share Posted July 11, 2015 In the way you have suggested , all cookies will be updated in that time period . I want only the logout / login cookies to be killed. Is there any way this is possible ? ( Auto logout in 1 hour ) 1 Link to comment Share on other sites More sharing options...
NemoPS Posted July 11, 2015 Share Posted July 11, 2015 As far as I know, no, not without core modifications at least Link to comment Share on other sites More sharing options...
Designinfo Posted July 13, 2015 Author Share Posted July 13, 2015 Can I change any details in my .htaccess file to kill/ destroy login cookies to make the customer auto log out? Link to comment Share on other sites More sharing options...
NemoPS Posted July 15, 2015 Share Posted July 15, 2015 Actually I would use the cookie's logout from php $this->context->cookie->logout(); Link to comment Share on other sites More sharing options...
Designinfo Posted July 15, 2015 Author Share Posted July 15, 2015 I did not understand . Which file do i make these changes in and what exactly is the change you are proposing? With this modification will the user automatically be logged out after 1 hour? Link to comment Share on other sites More sharing options...
bellini13 Posted July 15, 2015 Share Posted July 15, 2015 cookies are stored on the customers browser. you cannot remove the cookie remotely unless they visit your site. so you would have to wait for the customer to return to your website, determine the time difference since their last visit, and then execute the code Nemo1 suggested. 1 Link to comment Share on other sites More sharing options...
Designinfo Posted July 16, 2015 Author Share Posted July 16, 2015 But shouldnt there be an option for what kind of cookies are saved by my customer. What if I want certain cookies like logging in and logging out to expire within a certain time limit? Link to comment Share on other sites More sharing options...
bellini13 Posted July 16, 2015 Share Posted July 16, 2015 create a enhancement request on the forge with your desired features and perhaps they will implement it. otherwise you will need to define and develop the solution for yourself 2 Link to comment Share on other sites More sharing options...
astriti Posted December 12, 2016 Share Posted December 12, 2016 thnx Link to comment Share on other sites More sharing options...
Recommended Posts