Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Crumby cookie

by Hero Zzyzzx (Curate)
on Nov 21, 2002 at 05:04 UTC ( [id://214709]=note: print w/replies, xml ) Need Help??


in reply to Crumby cookie

Try explicitly setting a path in the cookie you're creating, one broad enough to encompass BOTH scripts you're testing. So:

$cookie_out = $q->cookie(-name=>"wolves", -path=>'/', #or -path=>'/cgi +-bin/' for your cgi-bin directory -value=>"cookieinfo",-expires=>'+24h');
Will make it valid for your entire site. When an explicit path is not set, browsers may interpret where a cookie is valid for differently. Where does that get you?

-Any sufficiently advanced technology is
indistinguishable from doubletalk.

Replies are listed 'Best First'.
Re: Re: Crumby cookie
by wolverina (Beadle) on Nov 21, 2002 at 17:00 UTC
    The Path thing fixed it.. woof meow. -Lisa

Log In?
Username:
Password:

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

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

    No recent polls found