Fred Sahakian wrote:
Id like to set a cookie in Perl and then redirect to another URL.
Ive tried the below code, it will set the cookie but then the browser
hangs, is it because it is 2 requests going to the header at the same
time, or possibly not enought time for the cookie to be set?

print "Set-cookie: value=bob;";
print "Location: http://www.something.com/\n\n";;

Any ideas?

Maybe what you thought first. Might also need a new line after the cookie line, as it may be running the Location into part of the cookie parameters.

http://danconia.org


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to