http://www.perlmonks.org?node_id=214709


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