http://www.perlmonks.org?node_id=369156


in reply to Re^2: CGI Session
in thread CGI Session

As was mentioned above, you have to give it a valid directory path. \tmp is probably not a valid directory path. For example, if you want your session files stored in a directory called SESSION located in the root of your C drive, make the directory there and use:

my $session = new CGI::Session(undef, $cgi, {Directory=>"C:\\SESSION"});