>> Here is the code I started with and have reverted back to:
>> --
>> my $cookie = "Set-Cookie: " .
>> "$COOKIENAME=$cookieContent; " .
>> "Host=www.wpi.edu; " .
>> "expires=+1h\n";
>> print $cookie;
>>
From: Philipp Hanes <[EMAIL PROTECTED]>
Date: Tue, 28 Jun 2005 17:33:30 -0400
> Here is the code I started with and have reverted back to:
> --
> my $cookie = "Set-Cookie: " .
>"$COOKIENAME=$cookieContent; " .
>
> My brain is melting.
> any help would be much appreciated.
> Thanks.
> --Alex
I'd recommend fiddling with trailing slashes and leading dots on the path
and domain items.
or prune the path all the way back, and see what's on the browser.
You are working at least sometimes with a browser that
Ugh.. OK, step by stepping it. I've got the forwarding working, however, now
my script has stopped reading the cookies. Not only can I not ready MY
cookie,
but I can't ready ANY cookie.
This function was working perfectly fine. I didn't touch it at all
while IO was
testing the writing of the
OK, So I mangled things around and now I can get the cookie written
using CGI.PM
It looks something like this:
my $q = new CGI;
my $cookie = $q->cookie( -name=> $COOKIENAME,
-value => $cookieContent,
Ah yes. Sorry, turns out I copied wrong code into my original email.
I DO have Domain, in my working code (work on everythign but Safari that is).
Host was in there from a few tests ago (I noticed that some cookies had
Host and
not Domain, so i figured I'd try).
Thanks for cathing that.
--Alex
> Here is the code I started with and have reverted back to:
> --
> my $cookie = "Set-Cookie: " .
> "$COOKIENAME=$cookieContent; " .
> "Host=www.wpi.edu; " .
> "expires=+1h\n";
> print $cookie;
>
Good questions.
Short answer: yes I've checked.
Longer answer: see below.
Quoting Tom Metro <[EMAIL PROTECTED]>:
> Have you checked for the obvious, like cookies are turned off in the
> browser? Or perhaps 3rd party cookies are disabled, and your specified
> "Host" doesn't match your URL host?
>
OK, so my code for writing cookies works in every browser except Safari.
I have tried using two different methods of using CGI.PM. In both cases the
cookies continue to write correctly in all browsers except Safari.
Here is the code I started with and have reverted back to:
9 matches
Mail list logo