Hi,
How about this: Save the "last action time" as a session variable. Whenever
the user hits a page, check that session variable against the current time.
If the "last action time" is more than 5 minutes older than the current
time, log them out/unset session variables.
Should work I guess.
""
Hello,
I plan to use session variables to identify if a user is logged in... I
know there is an option to set the life of the session but I am looking for
a way to end the session five minutes after they have did there last
"transaction" with my site...
I don't want people that are actively us
2 matches
Mail list logo