Kevin Jones wrote:Get the servlet to generate a sessionid that it passes to the
applet in its

> first response, the applet stores this away and passes it back to the
> servlet on each subsequent request. Problems I see however is that applets
> can persist away their state (i.e. can't write to the hard disk), and many
> browesers now destroy applets whenever the user browses away from the page
> the applet is on, so the applet looses its in-memory state as well, although
> you may be able to fix the second problem by having the servlet that
> generates the HTML page place the sessionid as an applet PARAM tag,

If you made the SessionID in the applet a static, then it should keep it if the
user browses away (unless the browser also unloads the current jvm execution
space during the destroy(), which I don't think it does). You would, of course,
need to take a little trouble to ensure that the static you are declaring
isgoing to be unique.

Cheers,

George

___________________________________________________________________________
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