Re: [phplib] quick question on active_sessions From: Ed Lazor (osmosis <email protected>)
Date: 07/14/00

K. That's what I thought. Thanks for confirming =)

That leads into two more quick questions:

1) How come stuff never gets cleared out of active_sessions?
      I've been watching and have seen things stay in there for up to
       5 days before I've gone in and manually cleared everything out.

2) When someone logs out, how come it doesn't just clear their
      items from the active_sessions table?

-Ed

At 11:38 PM 7/13/2000 -0400, you wrote:
>* 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>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>