Problems? Is your data what you think it is? | |
PerlMonks |
Re: Cannot create a cookie using HTTP::Cookiesby shagbark (Acolyte) |
on Aug 25, 2015 at 02:35 UTC ( [id://1139761]=note: print w/replies, xml ) | Need Help?? |
Looking at the source code for HTTP::Cookies, $version defaults to 0, but in other code, it defaults to 1 if $discard or $secure are set, but only if it hasn't already defaulted to zero? $path_spec is optional?, and adds a "\$Path="$path" line to the HTTP header. I don't know what this does. It appears that setting $discard causes the cookie to be deleted at some time; perhaps end of session? It is not clear at all how $port works, but it seems to be optional Also, googling shows other people have asked what the documentation means, and the module's creator replied by saying he didn't see how it could be made any clearer. Thanks for the module, but that part of the documentation could be made clearer.
In Section
Seekers of Perl Wisdom
|
|