Demo Logout Inactive User using PHP
Click here to auto login and set a user's last activity session for demo purpose (30 seconds only).
Once you clicked the above link and new session is created then Click here to view dashboard (secured page), after opening this page, if you remain inactive for 30 seconds, you will be automatically log out and redirect back to here.