I could be wrong but aren't you missing a new line character:
my $cookie = "Set-Cookie: " .
             "$COOKIENAME=$userID; " .
             "domain=.breltech.com; " .
             "expires=+1d\n";
print $cookie;
.....
print "Content-type: text/html\n\n";

Tal
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Alex Brelsfoard
Sent: Tuesday, August 31, 2004 2:47 PM
To: [EMAIL PROTECTED]
Subject: [Boston.pm] Setting cookies in different browsers

OK, so here's my situation.  I have a web applicaiton that you log into
and it writes a tiny little userID cookie to the browser.  This all works
beautifully in IE.  However, in Mozilla and Safari it's a different story.
 In Sfari, the cookie is not written at all.  In Mozilla the writing of
the cookie interferes with the html header and makes the next page to come
up appear as plain text.
Can anyone give me some advice to stablize this app?
I am currently using the followin code to write the cookie:
my $cookie = "Set-Cookie: " .
             "$COOKIENAME=$userID; " .
             "domain=.breltech.com; " .
             "expires=+1d";
print $cookie;
.....
print "Content-type: text/html\n\n";

suggestions?

--Alex
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm


_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to