I am trying to create a new session with the CGI::Session module.
$session = new CGI::Session("driver:file", undef, {Directory=>'/tmp'});
$sid = $session->id;
But it returns
[error] Can’t call method “id” on an undefined value at /home/httpd/cgi-bin/login.cgi line 74, line 36.,
It seems that the new session returns null. It doesn’t seem to create any new files in the tmp folder, too.
What could be the problem? Maybe the library is not installed correctly?
Extract from the docs:
So you might want to check for something like this: