Bill Stephenson wrote:
> How can I set a cookie when someone visits my home page?
> 
> I've tried using a server side include like so....
> 
> ######################### code #########################
> #!/usr/bin/perl -w
> 
> # This is in my html page:
> # <!--#exec cgi="/cgi-bin/ezInvoice2/ssi.cgi"-->

[snip cgi ]

Your code to set the cookie is OK, but I don't think you can do this from
SSI; only the body of the response is used, not the headers (where the
cookie is set).

Googling for "set cookie from ssi" turns up lots of discussion of this
topic.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to