Question
User Interface: Logout
I want to be able to tell which users on my site are online
and which are offline, i thought the best way of doing this would
be to add another area to my database which would be a booean tick
box (ticked if online and unticked if offline).
I would code it by saying when the user logs in, tick the box and when the user loggs out untick the box however if the user were to close the window the box would remain ticked, how can i get round this problem (can i make it timeout somehow).
I would code it by saying when the user logs in, tick the box and when the user loggs out untick the box however if the user were to close the window the box would remain ticked, how can i get round this problem (can i make it timeout somehow).