Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Crumby cookie

by Hero Zzyzzx (Curate)
on Nov 21, 2002 at 05:04 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2021-05-13 06:36 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (134 votes). Check out past polls.