Date: 07/13/00
- Next message: Ed Lazor: "Re: [phplib] quick question on active_sessions"
- Previous message: Ed Lazor: "[phplib] quick question on active_sessions"
- In reply to: Ed Lazor: "[phplib] quick question on active_sessions"
- Next in thread: Ed Lazor: "Re: [phplib] quick question on active_sessions"
- Reply: Ed Lazor: "Re: [phplib] quick question on active_sessions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
* Ed Lazor <osmosis <email protected>> [Jul 13 8:12pm]:
> Am I correct in believing the following sql statement will tell me how many
> users are currently active on the site (when using phplib sessions)?
> select * from active_sessions where name='DB_user';
> ps... in this case, DB_user is my extension of the phplib User class.
That query will tell you how many sessions by that name exist in the
database -- meaning that many that were created and have not been
garbage collected yet.
It is nearly impossible to know what sessions are still "active" -- in
terms of what the person browsing considers "active".
The best you can do is come up with some time, say 10 minutes, and
find all session last used within that time and consider those
"active".
-- Padraic Renaghan /pad-rik ren-a-han/ padraic <email protected> AOL IM: PadraicRenaghan ICQ# 9437815 http://renaghan.com/pcr/--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Ed Lazor: "Re: [phplib] quick question on active_sessions"
- Previous message: Ed Lazor: "[phplib] quick question on active_sessions"
- In reply to: Ed Lazor: "[phplib] quick question on active_sessions"
- Next in thread: Ed Lazor: "Re: [phplib] quick question on active_sessions"
- Reply: Ed Lazor: "Re: [phplib] quick question on active_sessions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

