>>> "Godbey, David" <[EMAIL PROTECTED]> 11-Apr-00 3:51:58 PM
>>>

>The books Hunter and Goodwill both seem to imply that session
>tracking is magically handled using the API, and it was using 1.1
> (<APPLET> tag).

The only magic is cookies or URL re-writing.

The question is how is your applet maintaining the session?

If it is required to maintain the session with a cookie you probably
have to ensure that the cookie is present on the request you make to
the servlet.

My gues is that it broke because the old APPLET way of doing things
was "inline" with the browser. That is that the browsers Java
implementation new to add the necessary cookies to every request going
out through the broiwser (it would be different if you used a Socket
to talk natively to the servlet).

Of course, my guess might well be wrong.

One way of finding out would be to use a network-sniffer to look at
the packets coming out of the 2 versions of your code. If I'm right
you will see the cookie in the HTTP header of your old APPLET version
but no cookie coming out in the new 1.2 system.

If this is the case you can fix it using JavaScript to tell the
applet about the cookies on the page and then send the cookie in the
applet's requests.


Nic Ferrier

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to