Jump to content

How to automatically make the customer logout after certain time period


Recommended Posts

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

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.

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...