I found my problem, it was a directory/mapping problem.

I'm making some assumptions about plug-in 1.3, for instance that the
following still holds true.  I got a spec for 1.2 and I quote "When using
Java Plug-in in Netscape Navigator, cookie support will only work if the
document base of the HTML page is part of the codebase of the applets or
JavaBeans." In Tomcat the servlet classes by default are in Web-inf/classes
which is not a sub-directory of the document base of the Html/applet/jsp
component.  Therefore you must map your servlets to this directory or a
virtual sub-directory.  You will not be able to call servlets outright using
the Tomcat standart 'host/servlet/servletname'.  Netscape was not taking
Tomcats cookie because of the directory it was coming from.

Only a slight mod on the Tomcat side and now it is smooth as silk.

dennis

-----Original Message-----
From: Kevin Mukhar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 10, 2000 2:17 PM
To: [EMAIL PROTECTED]
Subject: Re: Netscape and session tracking


Dennis Sasinka wrote:
>
> - Cookies are not manually implemented.
> - Cookies are enabled on all browsers used.

I am surprised that this works at all then. When an applet makes a
network connection to a server, the browser does not send any cookie
information. If the applet makes a connection to the server, then the
applet must pass any cookies that need to be sent. That means that the
first time an applet contacts the server, it must read the cookie from
the header. When the applet contacts the server the next time, it sends
the cookie back to the server. This cookie contains the session id which
is used by the server to identify the correct session to return from the
getSession call.

Modify your applet to retrieve and return cookies sent by the server.
That should correct the problem. There is applet code at
http://pages.about.com/kmukhar/appletServlet/ that shows how an applet
can get a cookie from a server, and send that cookie back to the server.

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

___________________________________________________________________________
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