Hi,
I'm trying to use the CGI:Session module to handle session data and I must be doing something very daft as I just cant seem to generate a session id to add to the query strings I'm generating further on in the script.
I've looked at the cpan tutorial and it looks to me like the following code should generate the session strings i need.
use CGI::Session;
$session = new CGI::Session("driver:File",undef,{'Directory'=>"/tmp"});
$html_session = $session->id();
Instead I get the dreaded 500 error and the apache log file contains:
main.pl: Can't call method "id" on an undefined value at C:/wwwroot/cgi-bin/main.pl line 59
Any help would be greatly appreciated.
Thanks