On a website I am developing there is a PHP script which generates an RTF document. Specifically, it generates a set of mailing labels from a list of people and addresses.
This works fine in every browser except Internet Explorer. These are the headers I am sending:
header("Content-type: application/msword");
header("Content-disposition: inline; filename=label.doc");
This worked fine in IE before the code was moved over to a superior, sessions-based system. Now, what seems to be happening, is IE loads the page but loses the session information and so nothing is returned. IE just complains about the requested site not being able to be found, which sounds like a result of authentication failing, i.e., a sessions problem.
This seems very much like an IE bug, and I figured people here would have encountered it before. Are there any, say, additional headers I could pass to the browser that might resolve this? Or any other thoughts in general?
Thanks.