Re: [Cgi-session-user] Problem setting up CGI::Session
Brought to you by:
sherzodr
From: Mark S. <ma...@su...> - 2005-08-11 13:52:25
|
On Thu, Aug 11, 2005 at 03:42:07AM -0400, Sherzod Ruzmetov wrote: > > Is that something that should always be done after doing > > any updates to the > > > session? > > > > It shouldn't be needed, as long as the session object goes out of > > scope by the end of your request. The session is not written to disk > > until the DESTROY method of the CGI::Session object is called (which > > happens automatically when the object is garbage collected). > > True, theoretically, flush() should never be called by a program. > CGI::Session should call it automatically at the end of the session. > Howerver, in some rare instances, I noticed this doesn't happen, and calling > flush() manually is the only fix. > > I know it's not very comforting for you guys to hear me say this, but I'm > not sure what the problem is either. It sounds like something to do with the > way session's state data (_STATUS attribute) is kept track, and it may be > buggy. Could someone try the same test using 3.95 and if see if the result is the same? That for me would determine if we need to address this for the 4.0 release, which I would otherwise feel good about releasing into the world Real Soon Now. Mark |