Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

(Ovid) Re: Tracking user exits

by Ovid (Cardinal)
on Sep 06, 2000 at 09:11 UTC ( #31212=note: print w/replies, xml ) Need Help??

in reply to Tracking user exits

Short answer: you can't. The only thing you can do is see when they last logged in or, if they have static IP or if you are tracking by cookies, you can also see the last time they have requested a resource, but that's about it.

Regarding Perlmonks, I heard someone mention that what it does is see who has made a request in the last two minutes (maybe taking the tail of the Web access log or something?) and then lists those users in the Other Users box. Perhaps when you make a request it updates a timestamp in the user record in the database? Then it would be a simple SQL statement like SELECT userID WHERE lastVisit > blah, blah, blah.

In short, you can't know when someone has left. You can only know when they last arrived.


Update: Hmmm... seems like puck has been paying more attention than I :)

Replies are listed 'Best First'.
RE: (Ovid) Re: Tracking user exits
by puck (Scribe) on Sep 06, 2000 at 09:13 UTC
    Since there's a field in the user information page called "Last here" I suspect that the SQL statement is probably how things are done round here...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2022-12-06 14:09 GMT
Find Nodes?
    Voting Booth?

    No recent polls found