My suspicion is that this is an IIS problem, not IE. The original description said the problem did not occur using the http server bundled with Webware, and I'll bet it doesn't occur using apache either. It could be that IIS is filtering the response headers before sending them back - disclaimer: I've never used IIS. :)
You can test if the cookie is reaching your browser by turning on cookie prompting. In IE 6, go to Tools->Internet Options -> Privacy, click "Advanced" and turn on Prompt for all cookies. There is a similar feature in Netscape. See if the cookie is being sent down to the client at all (using either browser). - Ben -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ian Bicking Sent: Thursday, June 05, 2003 1:23 PM To: Max Ischenko Cc: Webware discuss Subject: Re: [Webware-discuss] Strange error with session handling On Thu, 2003-06-05 at 15:06, Max Ischenko wrote: > Hi! > > I've encountered a strange error during development of my site. > > Brief desc. of the site logic. > Servlet A is a "start page". User points a browser to this page to start > work. > It sets session().value('foo', bar) and then redirects browser to the > servlet B. Servlets B reads session variable foo and displays a page to the > user. > > The problem: > After the WebKit appserver is started the first user request to the page A > results in error. By instrumenting my code I found out that the error occurs > in servlet B! It tries to read session variable foo and there is None. The > strangest thing is that servlet A actually sets this value and prints it OK > (before redirect). I'm betting the session ID isn't being sent to the client in Servlet A, because of the redirect -- IE and cookies and redirects and some other stuff all interact badly. Once you get to Servlet B, you get a new session ID which you keep for later, so then Servlet A works again. Resolution? Not sure. Maybe someone else is more familiar with tricks to get IE to accept both cookies and redirects at the same time. Ian ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss