Perl Monk, Perl Meditation | |
PerlMonks |
Re: How do i know if an user is not on my site anymore??by dmitri (Priest) |
on Mar 08, 2001 at 20:12 UTC ( [id://62981]=note: print w/replies, xml ) | Need Help?? |
Here are a couple of quite painless ways to do this.
Solution No. 1 SELECT USERNAME FROM LOGGED_IN WHERE LAST_TIME > NOW() - 15 The SQL will be db-specific, but you get the point. The good thing about this approach is that you don't need a separate frame. The downside is that you have to know some JavaScript.
Solution No. 2 The second way is not very good if someone trips over his powercord, or Netscape crashes. You pick the way to do it. $.02
In Section
Seekers of Perl Wisdom
|
|