Re: [phplib] Session Data never Removed From: Kartic Krishnamurthy (kaygee <email protected>)
Date: 11/05/00

> I installed it and it (the testing scripts shipped with phplib) worked
> quite fine when I noticed the problem with the IE5 caching (BTW: is
> there a recent workaround that doesn't disable the 'Back'-Button? I

Yes, in the extended session class in local.inc, include var $allowcache="no". The IE caching should be fixed.

> Well, I think there is another problem: 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.

That is because, garbage handling is done only every so often depending on the value you provide for $gc_probability in the session
class extension. If you are using the defaults, I think it will happen only once every 100 (1%) PHPLIB session connections. The
session data will be there in the database but they will have expired (default 1440 seconds)...

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