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


in reply to CGI::Session small problem...

You have to include the session cookie in the HTTP header you generate. See CGI::Session::Tutorial for some ways to do that. It surprises me that it works at all without it.

Replies are listed 'Best First'.
Re^2: CGI::Session small problem...
by pedrete (Sexton) on Feb 24, 2013 at 14:40 UTC

    Thanks MOtirz

    I think the cookie gets to the user browser when i use the line
    print $sesion->header(-location=>"web.pl");

    And in fact i have checked and the cookie in the browser is ok... ans so in the server /tmp folder...

    Thanks,

    Pedrete

      You should monitor the HTTP requests with a browser extension such as LiveHTTPHeaders or just capture the network traffic with Ethereal. Paste the whole conversation from the first request (login.html) to the one hitting web.pl; we could perhaps figure out what's wrong. (Use a dummy username + password.)

        no, don't bother with this, waste of time