in reply to Re: Recommended modules for handling cookies?
in thread Recommended modules for handling cookies?
And it's "HTTP_COOKIE", not "HTTP-COOKIE". It's an underscore ("_").
And, finally, you really should be using CGI::Cookie. From the docs:
To set cookies:
To fetch cookies:# Create new cookies and send them $cookie1 = new CGI::Cookie(-name=>'ID',-value=>123456); print header(-cookie=>[$cookie1]);
Read the documentation for more info, particularly on setting the domain (look at the code setantae posted).%cookies = fetch CGI::Cookie; $id = $cookies{'ID'}->value;
|
---|