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

Reply via email to