in reply to Problem with CGI::Session creating empty session files after upgrading from Perl 5.8.0

Try explicitly flushing the session with $session->flush() at the end of your script (or at least the request handling phase thereof).
  • Comment on Re: Problem with CGI::Session creating empty session files after upgrading from Perl 5.8.0
  • Download Code

Replies are listed 'Best First'.
Re^2: Problem with CGI::Session creating empty session files after upgrading from Perl 5.8.0
by AndyH (Sexton) on Jun 18, 2004 at 06:18 UTC

    You are a star! That does, indeed, fix it.

    But, any idea why it fixes it? What is it that has changed between 5.8.0 and 5.8.3 that would explain this behaviour??

    Many thanks.

    AndyH

Re^2: Problem with CGI::Session creating empty session files after upgrading from Perl 5.8.0
by AndyH (Sexton) on Jun 18, 2004 at 09:02 UTC

    Sadly, I spoke too soon. It doesn't fix it; in fact, it makes no difference to the behaviour at all.

    sigh.

    AndyH.

Re^2: Problem with CGI::Session creating empty session files after upgrading from Perl 5.8.0
by AndyH (Sexton) on Jun 18, 2004 at 12:01 UTC

    Update: it does, after all, fix the problem; but only after I deleted all the stored session files and the cookies on the client.

    Would still like to know why it fixed the problem ...

    AndyH