You say this because you've tried it? Or you say this because you trust the documentation?
The documentation doesn't say that Apache ignores the cookie - it claims that browsers ignore cookies when they are redirected. It's wrong. They don't. (Though in some early versions of Safari there was a bug where it did. This was fixed though.)
And if they did ignore cookies when redirecting, then why do you think that structuring your code slightly differently will change things? However your code works internally, if you're printing the same HTTP headers, restructuring the code won't change anything. Browsers don't see your code - they see the HTTP headers.
In reply to Re^5: CGI error: "Invalid header value contains a newline not followed by whitespace"
by tobyink
in thread CGI error: "Invalid header value contains a newline not followed by whitespace"
by MyMonkName
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |