When you call SetCookies, you haven't set the expiry date, so your cookie is set with the default expiry date. Try calling SetCookies after you have set all of the required attributes of the cookies.
Alternatively, stop using cookielib and just use the underlying CGI::Cookie calls. You'll have far more control over what is going on, and it's really no harder to do.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: inserting and using cookies
by davorg
in thread inserting and using cookies
by clickit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |