So $session is not defined. Either you didn't show the relevant parts of the script, as in, a self-contained, runnable, minimal script that reproduces the error, or the $session you're using to print is not the $session you declared further above. Also, read the CGI::Session documentation for ->new. It says Constructor. Returns new session object, or undef on failure. So, if there is an error when constructing the session, it might return undef. Maybe because your $perl_sessions directory does not exist.
In reply to Re^3: CGI::Session Compilation Issues
by Corion
in thread CGI::Session Compilation Issues
by rpike
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |