Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by hesco (Deacon)
on Jun 01, 2009 at 15:17 UTC ( [id://767278]=note: print w/replies, xml ) Need Help??


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()

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://767278]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (1)
As of 2024-04-24 15:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found