In this video , you will be able to learn how to automatically logout inactive user.
I will be showing you for some seconds you can change it according to your time of inactivity.
Two ways:
Meta tag
using session php and ajax
Meta tag
meta http-equiv="refresh" content="60;url=logout.php"
Session
store user time of login in session
after that check with the current time and the time of inactivity
if greater then logout
else remain login
Code link:
github.com/sus...
Timeline:
for meta tag : 1:25 - 2:25
for session : 2:26 - 7:25
#php #knowledgethrusters
21 окт 2024