in reply to inserting and using cookies

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.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Replies are listed 'Best First'.
Re^2: inserting and using cookies
by clickit (Initiate) on Jan 24, 2006 at 23:58 UTC
    Hi, Dave:

    Thank you for the advice! Where can I get the documentation on how to use CGI::Cookie?

    Appreciated,
    Patrick

      The CGI::Cookie documentation on CPAN would be an obvious place to start. Also you might find the first half of this article to be useful.

      --
      <http://dave.org.uk>

      "The first rule of Perl club is you do not talk about Perl club."
      -- Chip Salzenberg