in reply to CGI::Session on Windows, can't reread file

OK, maybe I spoke a little too soon. I got it to work in c:\windows\temp by adding the IUSR permission with 'full control'. But I didn't want to leave IUSR with full permissions in Windows\temp, so I tried to change the directory to somewhere else, like c:\session. Didn't work. No matter what I do, I can't seem to change the folder it's going to work in, it always creates the file in c:\windows\temp. How do I get it to go somewhere else? My session creation statement is the same as before, with the folder hardcoded:
$session = new CGI::Session(undef, $sid, {Directory=>'c:\session'}) or + die CGI::Session->errstr();
I also don't get any error msg from the die statement.

Replies are listed 'Best First'.
Re^2: CGI::Session on Windows, can't reread file
by poj (Abbot) on Jul 05, 2013 at 14:16 UTC

    Does it die with a non-existent directory like z:\session ?

    poj
      Actually I found the problem, it was a problem with the script not calling back on itself properly. It's working again now. Thanks muchly again.