in reply to Perl Sessions and Cookies - Cookie don't get passed

Your redirect is wrong. Always test the real output from the command line or with curl or something if your script isn’t behaving–

perl -MCGI=:all -e 'print redirect("http://some/full/uri", cookie(-nam +e => "x", -value => "y" ))' Status: 302 Found Window-Target: x=y; path=/ Location: http://some/full/uri

This—Re: CGI::Application redirect loses cookie—shows redirect with cookie with CGI.

Couple other points–

Replies are listed 'Best First'.
Re^2: Perl Sessions and Cookies - Cookie don't get passed
by Yaerox (Scribe) on Mar 06, 2015 at 08:12 UTC
    Thanks for the other points, I'll take a look on it. I rebuilded this stuff by using CGI::Session now. It works fine, and I'm actual just saving the username and a sessionID to validate the user on every page.