Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Send cookie to CGI script

by sutch (Curate)
on Dec 16, 2000 at 02:56 UTC ( [id://46958]=note: print w/replies, xml ) Need Help??


in reply to Send cookie to CGI script

Examine your cookie jar with
  print $jar->as_string;
Supplying more arguments to set_cookie does help, i.e.:

  $jar->set_cookie(undef, 'message', 2, '/', '.somedomain.com', 80, 0, 0, 100, 0, {});
  print $jar->as_string;

Which results in:

Set-Cookie3: message=2; path="/"; domain=".somedomain.com"; port=80; expires="2000-12-15 21:59:27Z"; version=0

I have noticed that set_cookie's $domain parameter requires two periods or it will not accept the cookie.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://46958]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-26 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found