Here I put my everyday thoughts. Mainly important things to remember but also smart solutions to problems.

28 september, 2005

Don't set cookies when binary sending pdf to IE

I just discovered that it isn't recommended to set cookies at the same
time you send a binary stream, e.g. pdf, to a IE browser.

It isn't the cookie itself that is the problem but when a cookie is set
a header Cache-Control: no-cache="set-cookie, set-cookie2" is issued and
this is the problem.

Solution: Don't set the cookie.