Hi Christian,
If I get your drift, one thing that you need to do sooner than later is
separate between client side Java code such as applets and server-side,
which is your JSP/Servlet. At any case, an Applet can't maintain a session
if you leave your site. Whenever a page which holds an applet unloads, the
applet gets unloaded too.
Maintaining a session is done either by setting a cookie, and then you can
the cookie's expiration date as need be, or by using URL-Rewriting, which
maintains sessions only as long as the client hasn't left your site. stick
to cookies, therefore.
zm.


-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Christian Kurze
Sent: Sunday, December 30, 2001 10:32 PM
To: [EMAIL PROTECTED]
Subject: Session in Applet??


Hi all,
I want to use an Applet for communication between the browser and the
web-server. In the applet there should be a Thread that permanently tries to
read from an ObjectInputStream. A Servlet sends via sendObject() Objects to
all the client-applets.
My problem: My session of the user might get lost. The applet is startet
from an JSP which uses a session. Several attributes are bound to it. When
the user  visits another site of my webapp the session still has to be
valid. I don't know how tomcat3.2 handles this fact. Is it enough that the
applet communicates with the server that the session won't get lost? If not,
how could I implement it?

thx in advance

Christian

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to