Cookies are set in the HTTP header portion of the HTML response. When you
run you include your script within the page, the HTTP header has already
been sent.
You need to set the cookie as a standalone page (though you can get cookies
in included scripts)
--A
-----Original Message-----
From: Brian Shoemaker [mailto:[EMAIL PROTECTED]]
Sent: May 9, 2001 1:46 PM
To: [EMAIL PROTECTED]
Subject: Cookies
I'm having trouble getting a script to set a cookie.
It works when I type the URL of the script into the browser and press
enter...... it works that's way and a cookie is set.
But when I place that script in a HTML page like this
<!--#exec cgi="/cgi-bin/test/cookie_get.pl"-->
the cookie won't set.
Is there something special you are supposed to do to set the cookie when
executing the script like that?
Thanks!
Brian Shoemaker