Hi,
Our web application requires that a user logs in. This sets a cookie in all headers subsequently sent from the browser that contains the session id. This is how I determine if a user has logged in. If the header does not contain a session cookie then I redirect them to the login page.
Problem now is that I have a
servlet that sends back a .xls file. The browser asks the user if they want to open or save the .xls file. If they choose 'open' the request does not have the cookie value set and they end up seeing my login page rendered as HTML in the excel file instead.
Has anyone had this problem before? What can I do to ensure that the browser sends the cookie in this request from the 'question dialog'. I did not expect this situation.
Thanks, Jared.