Automatic Logout after 10 minutes of inactive Session in PHP
In this tutorial, we will how to apply automatic logout after 10 minutes of inactive session. Step 1: Start a new session by using session_start() the function at the beginning of the script. Step 2: Set a timer when the user logs in or accesses a page by setting a session variable with the current time, for $_SESSION[‘last_activity’] = time(); Step...
0 Comments 0 Shares
Sponsored