Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 ( #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.

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

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? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2022-12-05 10:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?