Skip to main content
Participant
July 20, 2006
Question

User Interface: Logout

  • July 20, 2006
  • 1 reply
  • 179 views
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).
This topic has been closed for replies.

1 reply

Inspiring
July 21, 2006
There are a number of tutorials on creating "who online" lists (just do a
Google search). The tricky bit is detecing activity to determine whether
someone has left the site or is simply reading pages.

To follow a database approach you could have a script that updated the users
table with a timestamp each time a page was called, and then used a time
difference to remove anyone with a time greater than 30 minutes.



--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"bondeblade" <webforumsuser@macromedia.com> wrote in message
news:e9oh1v$r6e$1@forums.macromedia.com...
>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).
>