in reply to SSI and *reading* a cookie only
I already know that you cannot set a cookie with an SSI script and I think I understand why - the set cookie command has to go before the headers and the SSI content is generated by the server and put below those headers.No, that's not it. It's that the headers (including MIME type) don't matter. Try setting your MIME type to "image/jpeg", for example. The server doesn't care: it just inserts the contents of STDOUT into the middle of your output stream.
I'm guessing here, but I don't think the "Cookie:" header will be passed to the subrequest, since it's a separate request. In that case, you won't get any $ENV{HTTP_COOKIE} variable either, which fits the symptoms you describe.
SSI is fairly limited. You should probably be using a full CGI script to generate your entire page, or perhaps a templating system of some kind.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SSI and *reading* a cookie only
by jfrm (Monk) on Jun 20, 2005 at 12:11 UTC | |
by merlyn (Sage) on Jun 20, 2005 at 13:06 UTC |