View Single Post
Old 06-11-2003, 03:45 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
make a field in your the user table named "lastvisit"

update that field with the curent time everytime the user clicks a page while logged in.

then figure out your timeout time ... lets say five minutes .. and you can query against their last visit to see if they are still logged in.
__________________
Mike
sde is offline   Reply With Quote