Charles Sweeney wrote:
> > Sorry, me again, there is this meta tag to use in an HTML document
> > <meta http-equiv="Set-Cookie" content="value=n;expires=date;
> > path=url">
>
> I went for this option...worked a treat!
>
> The things you learn, I thought it had to be in the header.
>
> --
> Charles Sweeney
> http://CharlesSweeney.com
I suppose it is up to the server
to sort of patch the meta http-equiv tags in the HTTP header.
There is a subtle and obvious difference between setting a cookie
with a CGI script via the HTTP header and
with the meta http-equiv tag
in the <head> element of a static HTML page.
The cookie set by the script via the HTTP header is in the HTTP header
when the page is accessed with HTTP request of
both HEAD and GET methods,
while the cookie set via the meta tag inside the HTML page is set
of course only when the page is accessed with the GET method,
because the cookie cannot be "seen"
unless the page content is accessed (as you know the HEAD method
does not download/access the URL content).
You can see this with the HTTP header checker
http://www.asymptoticdesign.co.uk/cgi-bin/index.pl
and with two very simple test pages I made,
one with a cookie set by a Perl script via the HTTP header
http://www.asymptoticdesign.co.uk/cg...okie_header.pl
and one with a cookie set via the meta http-equiv Set-Cookie tag
http://www.asymptoticdesign.co.uk/au...okie_meta.html