Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: (z) Re^3: How to do session times The Right Way

by strider corinth (Friar)
on Oct 31, 2002 at 21:48 UTC ( [id://209542]=note: print w/replies, xml ) Need Help??


in reply to (z) Re^3: How to do session times The Right Way
in thread How to do session times The Right Way

A-ha. I see. I thought you were describing a whole new structure; I didn't realize that the old log data was still to be used.

Ok, then. That's a great solution. =) Thanks.

The system I derived from the solution you didn't (as it turns out =) provide looks like this at the end of the hour, for users a, b, and c:
2:00 - Previous: a: 1:00 b: 1:35 c: 1:50 - Logons: d: 2:10 - Logouts: a: 2:30 d: 2:50 ...
This way, none of the original data needs to be kept. To find out who was logged in at 2:15, you check the Previous and Logons fields against the Logouts field, and anything falling in between matches. It was something like that (minus a couple of nuances) that I thought you meant.
--

Love justice; desire mercy.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-18 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found