From: Ian B. <ia...@co...> - 2003-06-05 21:49:09
|
On Thu, 2003-06-05 at 16:37, Geoffrey Talvola wrote: > Max Ischenko wrote: > > The problem never occurs when using built-in http server but occurs > > whenever IIS is used through webkit.cgi (I haven't tested with > > Apache). > > I'll take a guess. I think IIS is probably doing an "internal redirect" in > which case the browser never sees the original reply and therefore never > gets the cookies. The built-in http server doesn't do internal redirects > but always sends them back to the browser. > > Are you using a relative URL to do the redirect? If so, try using a full > absolute URL instead: > > self.response().sendRedirect('http://foo.com/webkit.cgi/MyServlet') > > and this might force IIS to send the redirect all the way back to the > browser, along with the session ID. You can probably also fix an internal redirect by setting the status code, like: self.response().setHeader('Status', '307 Temporary Redirect') Ian |