I am using cookies for session tracking and using the JRE1.3
plug-in.  I am not setting the cookie domain because my
development server is not part of a DNS domain.  However, regular
html pages generated from servlets do not have any difficulty
maintaining the session.

There ought to be a way using the URLConnection object to set
the cookie.  I can find out the session id quite easily from the
servlet and pass this to the applet as an applet parameter.

-----Original Message-----
From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 7:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Maintaining user's servlet session with tunnelling from an
applet


Alex Amies wrote:
>
> I use a URL object to talk to the servlet.  Is there a way to set
> the session id in a http request made by the applet to the servlet?
>

 - Is your session using cookies or url rewriting?

 - If cookies, is the original login domain the same as the
   domain you're trying to access with the applet?

 - Is your browser using the built-in jvm, or a plugin?

 Theoretically, if your applet is using a URLConnection, and
your session is using cookies, and you're using the built-in
jvm on a relatively modern browser, the cookie should be
shared.


--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com







-

________________________________________________________________________
___
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

___________________________________________________________________________
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