Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: cgi::sessions can not create global session handle

by shenme (Priest)
on Feb 12, 2005 at 10:06 UTC ( [id://430386]=note: print w/replies, xml ) Need Help??


in reply to cgi::sessions can not create global session handle

I've had varying 'experiences' with CGI::Session, and at some point added the following code to my CGI::Application teardown() routine:
# Force CGI::Session flush now (rather than wait until object # destruction time when any errors/messages may be lost to us. $session->flush() or die "Unable to update session storage\n";
Try again using a global for the $session object handle, but use the flush() method at the end of all your processing. You may solve the problem right there, or generate an error message that will lead you to a definite problem.

Replies are listed 'Best First'.
Re^2: cgi::sessions can not create global session handle
by webg (Initiate) on Feb 12, 2005 at 16:27 UTC
    excellent - I never would have tracked it down to that. Thanks very much for sharing your wisdom! webg

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-03-28 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found