in reply to Re: CGI::Session in SUN OS
in thread CGI::Session in SUN OS

I tried it with several directories beside /tmp and it fails in all fo them.
It writes only the first session.
The CGI::Session version which fails is 4.2

Replies are listed 'Best First'.
Re^3: CGI::Session in SUN OS
by Anonymous Monk on Jul 21, 2010 at 13:57 UTC
    Why aren't you error checking?
    CGI::Session..... or die CGI::Session->errstr();
      I added the error chack and that's what I get:
      new(): failed: load(): couldn't retrieve data: retrieve(): couldn't lock '/tmp/cgisess_e5e193d04e0d0b818bc848bc6ef5c668': Bad file number at cgi_test.pl line 14. Are you familiar with this error?
      By the way, the CGI::Session version is 4.42
      Thanks,
      fasa
        Possibly some sort of permissions issue?
        What user is the CGI script being executed as?
        Do they have proper access to /tmp?
        Have you tried things from the shell when logged in as that user?