r.pelizzi at virgilio.it
Mon Aug 30 21:13:02 EDT 2004
Tobiah wrote: > > > This is exactly what I decided to do. I made a simple mysql database > called 'session' that will handle all of the session data for all of > the web apps for my company. I tag each session with an 'appname' so > that each report or app can register its own discreet session for > each user. This is very important if, like around here, a person might > have several apps open at once. It used to be that one app would > destroy a persons session from another app. > > I don't think that efficiency will be a problem. Every web application > that I have ever written already connects to and queries from a > database on every page hit. One more little request to retrieve a > small session object shouldn't be of any concern. PHP uses temp files > to do the same thing. > > By writing this myself I think that I will afford myself the greatest > flexibility in the future. > how did you subclass Session to perform the cleanup? I'm having problems with that... Do you have to set CLEANUP_CHANCE to 1 or do you leave it to the high default value?