|
Posted by Good Man on 02/25/06 19:11
"Sam" <salmondays2000@yahoo.co.uk> wrote in news:1140782741.657118.82670
@e56g2000cwe.googlegroups.com:
>>>I hope it's of interest.... <
>
> It's very interesting.
>
> Thanks to both of you for your informative replies - I think I
> understand what I need to do now :o)
as a side note, you can also write a quick function that a) converts the
current moment to a Unix Timestamp; b) checks a database or flat text file
for the last activity by the user (by UserID for example) c) sees if its
longer than 30 minutes ago compared to this timestamp, and if so, kicks the
user out to a page where you can unset($_SESSION['session1']); etc... if
not, then it writes the new timestamp to the db/textfile. as long as you
don't have a crazy number of users on the system, this works close to
flawlessly.
Navigation:
[Reply to this message]
|