Date: 07/14/00
- Next message: Maurice Jumelet: "Re: [phplib] quick question on active_sessions"
- Previous message: Kristian Koehntopp: "Re: [phplib] quick question on active_sessions"
- In reply to: Ed Lazor: "Re: [phplib] quick question on active_sessions"
- Next in thread: Kristian Koehntopp: "Re: [phplib] quick question on active_sessions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In netuse.lists.phplib you write:
>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.
The garbage collection is not running on your system for some
reason. One of that reasons may be that the load on your system
is very low, it is perhaps a test installation with very little
traffic. In that case, the garbage collection will almost never
fire. It does not need to, though, because there is no load on
your system and a few tousand session records do no harm at all.
>2) When someone logs out, how come it doesn't just clear their
> items from the active_sessions table?
A session id has nothing to do with a user id. The two are
completely unrelated (in fact, the relation is such that you
need a session id before you can have a user id, but it is still
unrelated to your observation). One must not delete a session id
and a session record when a user id becomes invalid. Instead,
the user id stored within the session record is invalidated, the
session is kept and the user can go on unauthenticated.
Kristian
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Maurice Jumelet: "Re: [phplib] quick question on active_sessions"
- Previous message: Kristian Koehntopp: "Re: [phplib] quick question on active_sessions"
- In reply to: Ed Lazor: "Re: [phplib] quick question on active_sessions"
- Next in thread: Kristian Koehntopp: "Re: [phplib] quick question on active_sessions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

