in reply to [OT] SSI and cookies
in thread Perl and HTML

I've tried it. You can't set cookies from an SSI included script.

I checked it again, you can read cookies from an SSI included script (in apache httpd at least), but it won't help in this case, because you can't reliably redirect from an SSI included script.

Replies are listed 'Best First'.
Re^2: [OT] SSI and cookies
by bmann (Priest) on Jul 06, 2005 at 23:57 UTC
    You can't set cookies from an SSI included script. (emphasis mine)

    Gotcha - the server will send the header based on .shtml or .html (or however SSI is configured). By the time the included file tries to set a cookie, the header is complete.

    That's what I was looking for. Thanks!