File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes session problem in netscape 4.7 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "session problem in netscape 4.7 ?" Watch "session problem in netscape 4.7 ?" New topic
Author

session problem in netscape 4.7 ?

bill java
Greenhorn

Joined: Dec 17, 2001
Posts: 12
Hi!

I am using servlet API 2.2 ,websphere 4.0 and able to maintain session in servlet in I.E 5.5
using java plugin 1.3.1.
But,
using Servlet API 2.2,websphere 4.0,java plugin 1.3.1 NOT ABLE TO MAINTAIN SESSION in netscape 4.7.
I am using setattribute and getattribute methods for session.My application maintains session in servlet side and populates data in applet side.

If anybody knows about this prob,please help me.
Thanks in advance
bill
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Are you saying that when the applet opens a URLConnection to the servlet, the session cookie that was set for the HTML page is not being sent?
Bill
bill java
Greenhorn

Joined: Dec 17, 2001
Posts: 12
Originally posted by William Brogden:
Are you saying that when the applet opens a URLConnection to the servlet, the session cookie that was set for the HTML page is not being sent?
Bill


We don't use any cookies.we maintain HTTPsession
in the servlet by getsession(true). Lets say there are two applets. First Applet calls the servlet that creates the session and putting some values inside the session. Then we are calling different applet and comes back to the First applet. The first applet calls the same servlet in the init method and gets the session values from servlet and populates in the applet side.
This code is perfectly working with IE5.5. We use java plugin1.3.1. But the same code is not working with the Netscape4.7.
Can you help me.....
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

Originally posted by bill java:

We don't use any cookies.we maintain HTTPsession
in the servlet by getsession(true).

... Well, you've gotta be tracking the session in one of two ways (see the servlet spec for more info): cookies, or URLencoding (http://blah.com/somepage.jsp?jsessionid=1234). Cookies is usually done under the covers by your app server, so unless you have a URL that looks like the one above, you're using cookies... so make sure your netscape browser is supporting cookies, otherwise your session won't carry through from page to page.
Calling getSession(true) doesn't maintain the session -- it obtains the session.
Hope that helps.
[ January 24, 2002: Message edited by: Jessica (Bradley) Sant ]

- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
bill java
Greenhorn

Joined: Dec 17, 2001
Posts: 12
Originally posted by Jessica (Bradley) Sant:

... Well, you've gotta be tracking the session in one of two ways (see the servlet spec for more info): cookies, or URLencoding (http://blah.com/somepage.jsp?jsessionid=1234). Cookies is usually done under the covers by your app server, so unless you have a URL that looks like the one above, you're using cookies... so make sure your netscape browser is supporting cookies, otherwise your session won't carry through from page to page.
Calling getSession(true) doesn't maintain the session -- it obtains the session.
Hope that helps.
[ January 24, 2002: Message edited by: Jessica (Bradley) Sant ]

Hi,
Thanks for the info. But the same code is working in IE5.5 perfectly. We don't send any session id through URL. we use Websphere4.0 application server that directly maintains the session. I don't think the browser make any difference in session which is under the cover of application server JVM. Am I right.. Or is there any specific reason that it is not working in Netscape
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session problem in netscape 4.7 ?