How do I detect when a user has been idle for a certain time and destroy their session in PHP?
Create a javascript function that has a x minute timeout that pops up and redirects.
Also on the server make sure their session expires so that in the case of Javascript not being available, they cannot continue actions after their idle time has passed.
I would like to have my PHP website destroy a users session if they have been idle for 5 minutes.  If this does happen, I'd like to present the user with a message stating why they were logged out and redirect them to the login page.
What is the best way to handle this?
I am running on php and myadmin.
Thanks
Avinash