Skip to content
Advertisement

Automatic Logout after 15 minutes of inactive in php

I want to destroy session if users are not doing any kind of activity on website. At that time after 5 users automatically redirect on index page. How is it possible? Is possible in php with session handling and for that I have to maintain or update user login time or not..

Advertisement

Answer

This is relatively easy to achive with this small snippet here:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement