Can anyone tell me how to set cookie expiration based on the code below and how to prevent the data from being reposted after a user clicks on the reload button.
$req = HTTP::Request->new(GET => "$URL");
# Pass request to the user agent and get a response back #
$res = $ua->request($req);
# Check the outcome of the response #
if ($res->is_success) {
Gisle Aas
<gisle@ActiveS To: [EMAIL PROTECTED]
tate.com> cc: [EMAIL PROTECTED]
Subject: Re: $cookie_jar->set_cookie()
02/13/2002
04:20 PM
[EMAIL PROTECTED] writes:
> Is this the proper syntax for setting cookies in LWP?
No.
> $cookie_jar->set_cookie($maxage = 45, $response). The document didn't
give
> an example in setting the expiration.
No, but the documentation says what the method signature is. How do
you think the description of this method could be improved so that it
answers your question?
Regards,
Gisle
