Hi, I am trying to set a cookie using the line:
[tt]$cookie1 = cookie(-NAME => 'cookie1', -VALUE => "$cookietext", -EXPIRES => '', -PATH => "$path", -DOMAIN => "$domain"
;[/tt]
if I print out the resulting line ($cookie):
[tt]print "Set-cookie: $cookie1<br>\n";[/tt]
I get this:
Set-cookie: cookie1=102400102211EDT2121582190; domain=hellacool.co.uk; path=/projects/test/
but when I revisit the page and print out the HTTP_COOKIE environment variable:
[tt]print "Cookie: $ENV{'HTTP_COOKIE'}<br>\n";[/tt]
I get nothing. I do have cookies turned on in my browser. Does anyone have any ideas?
Thanks [sig]<p>fortytwo<br><a href=mailto:will@hellacool.co.uk>will@hellacool.co.uk</a><br><a href= test site</a><br> [/sig]
[tt]$cookie1 = cookie(-NAME => 'cookie1', -VALUE => "$cookietext", -EXPIRES => '', -PATH => "$path", -DOMAIN => "$domain"
if I print out the resulting line ($cookie):
[tt]print "Set-cookie: $cookie1<br>\n";[/tt]
I get this:
Set-cookie: cookie1=102400102211EDT2121582190; domain=hellacool.co.uk; path=/projects/test/
but when I revisit the page and print out the HTTP_COOKIE environment variable:
[tt]print "Cookie: $ENV{'HTTP_COOKIE'}<br>\n";[/tt]
I get nothing. I do have cookies turned on in my browser. Does anyone have any ideas?
Thanks [sig]<p>fortytwo<br><a href=mailto:will@hellacool.co.uk>will@hellacool.co.uk</a><br><a href= test site</a><br> [/sig]