Date: 11/05/00
- Next message: nathan r. hruby: "Re: [phplib] Session Data never Removed"
- Previous message: Kartic Krishnamurthy: "Re: [phplib] Session Data never Removed"
- In reply to: Jens Heneweer: "[phplib] Session Data never Removed"
- Next in thread: nathan r. hruby: "Re: [phplib] Session Data never Removed"
- Reply: nathan r. hruby: "Re: [phplib] Session Data never Removed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Jens!
You wrote:
> ...the session data is never deleted. When I shut down the browser
> and reopen it, the data is still in the (mySQL-) Database. In the
> documentation it was said, the data is deleted on session end.
I believe, you misunderstood this. The garbage collection isn't
invoked on every session end, but randomly. Firstly this is for
performance reasons and secondly, the server couldn't even notice when
a user doesn't log out explicitly, but his session just times out.
The documentation (chap. 3.8) says:
<cite>
The active_sessions table contains one row for each session. That row
is uniquely identified by the sid and name values (name is the name of
the session class that has written the row). Each time that row is
written, the column changed is updated with the current time.
The gc() function deletes all rows that are older than gc_time minutes
and have a matching name field. For speed reasons, gc() is not not
called every time an update to active_sessions is being made. Instead
it is called randomly with a probability of gc_probability.
</cite>
Hope this helps.
cya
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: nathan r. hruby: "Re: [phplib] Session Data never Removed"
- Previous message: Kartic Krishnamurthy: "Re: [phplib] Session Data never Removed"
- In reply to: Jens Heneweer: "[phplib] Session Data never Removed"
- Next in thread: nathan r. hruby: "Re: [phplib] Session Data never Removed"
- Reply: nathan r. hruby: "Re: [phplib] Session Data never Removed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

