in reply to CGI::Session->flush() fails to store session data in file store

My gratitude to the anonymous monk who reminded me of the power '$!' and a simple 'or die'. Permissions issue, and my application now seems to be writing session data to the file store.

$ymd->{'s'}->flush() or die "Died attempting to flush session paramete +rs to the file store: ", $!;
Now to test the redirect and the preservation of session.

Thanks folks,
-- Hugh

if( $lal && $lol ) { $life++; }
  • Comment on Re: CGI::Session->flush() fails to store session data in file store
  • Download Code

Replies are listed 'Best First'.
Re^2: CGI::Session->flush() fails to store session data in file store
by Anonymous Monk on Jun 03, 2009 at 17:04 UTC
    That happens to work if you're using File store, better idea to use CGI::Session->errstr()