Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How do i know if an user is not on my site anymore??

by dws (Chancellor)
on Mar 08, 2001 at 11:53 UTC ( [id://62932]=note: print w/replies, xml ) Need Help??


in reply to How do i know if an user is not on my site anymore??

There are a couple of ways of telling whether someone is still looking at a page on your site. They're not pretty. Here's one:

Serve up framed pages. Arrange to "hide" a frame. In that hidden frame, set up a "watchdog timer" using a page with a meta refresh tag to a CGI on your site. The CGI keeps track of who is still out there polling, and returns the same page. After some suitable interval of not getting a poll, mark the user as logged out. You'll also need to use a cookie to distinguish people who may be sitting behind a firewall that's doing NAT (network address translation).

This works. People will throw bricks at you, but it does work.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://62932]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-29 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found