in reply to CGI::Session in SUN OS

If it works in one place and does not in the other, find out the differences. One or more of the differences likely is responsible for what you see.

Have you compared the module versions?

Is /tmp writable by the webserver user?

Does eliminating CGI and running the script from the command line change anything?

Replies are listed 'Best First'.
Re^2: CGI::Session in SUN OS
by fasa77 (Initiate) on Jul 21, 2010 at 13:35 UTC
    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
      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