[Techtalk] At Wits' End on Persistent HTTP Cookies

Kai MacTane kmactane at GothPunk.com
Wed May 1 10:41:17 EST 2002


At 4/30/02 02:14 PM , David Merrill wrote:
>On Tue, Apr 30, 2002 at 01:02:54PM -0700, Kai MacTane wrote:
> > Hi. I'm trying to make a mod_perl/Mason project set a persistent cookie,
> > using the old Netscape cookie spec at
> > http://www.netscape.com/newsref/std/cookie_spec.html . I can make it set a
> > session cookie, no problem, but getting to keep the cookie around for a
> > mere 5 days has driven me to the point of insanity.
>
>Have you tried the "+10d" format rather than a hard coded date? All I
>can tell you is that that kind of format works for me.

I don't think HTML::Mason has that sort of thing built in.

>Are you using CGI.pm? If so, here is what I'm doing:

No, I'm a bit wary of using CGI.pm for just one header, while HTML::Mason 
(sitting on top of mod_perl) handles the others. It seems like asking for 
trouble.

I've done some more testing, however, and I'm starting to think this may be 
a bug in Mozilla 0.9.8. IE 5 and Netscape 4.74 both retain the cookie 
across sessions, as they should.

At this point, I'm burning with curiosity to figure out what's up here... 
I'm going to do some research, and see what sort of Set-Cookie header 
developer.intel.com gives me if I connect to it and give it a Mozilla 
User-Agent string. I'll keep you posted.

                                                 --Kai MacTane
----------------------------------------------------------------------
"This trembling, adored,
  Tousled bird mad girl..."
                                                 --The Cure,
                                                  "Burn"




More information about the Techtalk mailing list