[Cgi-session-user] Re: session not written to disk, worked before 4.x upgrade
Brought to you by:
sherzodr
From: Mark S. <ma...@su...> - 2006-01-18 15:18:33
|
On Wed, Jan 18, 2006 at 05:07:16PM +0200, Cristi Ocolisan wrote: > Hi all, > > Again, my "fellow" admin from the server I host two of my clients' sites has > upgraded the version of perl to 5.8.7 and CGI::Session module to 4.03. > > This leads to several problems regarding my websites. > > First was that the sessions refused to initialize, but this I solved. > Now I have a nightmare because I have nothing written inside the session > files. > > > It is incredible, because it WORKED fine until the upgrade. > I revised several times my code and nothing seems to be wrong, but. > Please tell me if there are incompatibilities between perl 5.8.7 and > CGI::Session 4.03. No. I think something changed with the 4.00 release which shouldn't have. > Anyway my code is as follows: (maybe you can find my error) I think there may be something we can change in CGI::Session to fix this. In the meantime, call $session->flush(); Before your script exits to insure the session is written to disk. This is supposed to happen automatically, but apparently it works differently with 4.x. Mark |