Dennis Sasinka wrote:
>
> I have looked through the archive and seen similar questions but no clear
> answers.
>
> I have an applet that stores an attribute using
> "session.setAttribute("name", value)" and then calls several servlets.  When
> calling the servlets, any attempt to retrieve the session using
> "request.getSession(false)" is returned null (yes, it returns a new session
> when set to true but that does me no good).  This only happens in Netscape,
> IE works fine.  I'm running Netscape 4.75 and IE 5.5, Servlet API 2.2 and
> Tomcat 3.1.  Can anyone help?

It sounds as though your applet is not saving/returning the session id
to the server. When an applet (or any application other than the
browser) is the client, then the applet is responsible for reading the
session-id cookie sent by the servlet container, and returning the
session id when it next connects to the server. Information on session
tracking is in the archives.

You can also look at the example here: http://pages.about.com/kmukhar. I
wrote the example more to show applet-servlet communication, but the
applet code shows an applet sending a cookie to the server. For session
tracking, you do not need to send or read the cookie from the servlet,
that is handled by the servlet container.

K Mukhar

___________________________________________________________________________
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