tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Larsen" <lar...@qec.com>
Subject Re: losing session info with netscape 4.x
Date Tue, 02 Apr 2002 14:55:06 GMT
To encode a URL with the session id, you call HttpServletResponse.encodeURL()
or HttpServletResponse.encodeRedirectURL(). If the session id is being stored
as a cookie, these methods will leave the URL unchanged. If cookies are 
disabled, then these methods will embed the session id within the URL.

So if you have a jsp with javascript that opens a popup, your javascript
would be something like this:

popup = window.open("<%= response.encodeURL("popup.jsp") %>");

In your case, with cookies enabled, it doesn't seem likely that this
is your problem. But it's a necessary practice if you want to allow
users that don't accept cookies to access your site.

Jeff

----- Original Message ----- 
From: "Huy K Dung" <hdung@lending4all.com>
To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
Sent: Monday, April 01, 2002 5:53 PM
Subject: RE: losing session info with netscape 4.x


> netscape 4.79 in particular. "Accept all cookies" option is selected.
> 
> I will try your suggestion and see what it will do.
> 
> Thanks.
> 
> PS. how do you correctly encode URL?
> 
> -----Original Message-----
> From: Jeff Larsen [mailto:larsen@qec.com]
> Sent: Monday, April 01, 2002 06:29 PM
> To: Tomcat Users List; Huy K. Dung
> Subject: Re: losing session info with netscape 4.x
> 
> 
> Netscape 4.x has been working for me in this type of situation,
> but the value of ".x" might make a difference. Do you have cookies
> enabled? If not, does your javascript for opening the popup window
> use a correctly encoded URL so the popup window's request has the
> session id built in? For debugging, configure your popup window with
> an address bar so you can see the sessionid in the URL.
> 
> Jeff
> 
> ----- Original Message -----
> From: "Huy K Dung" <hdung@lending4all.com>
> To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
> Sent: Monday, April 01, 2002 4:59 PM
> Subject: losing session info with netscape 4.x
> 
> 
> > Hi,
> >
> > I am using tomcat 3.3.1, apache 1.3.24, turbine 2.1 to develop my web app.
> > Everything seems to work fine with IE 5.5 and netscape 6.x and even
> netscape
> > 4.x. What I've noticed is that when I use popup windows, netscape 4.x
> > doesn't seem to have the right info from session.
> >
> > From main netscape window I click to open a 1st popup window, and from the
> > 1st popup window I click to open a 2nd popup windows. When I perform an
> > action from the 2nd popup window, it closes it self and refresh the 1st
> > popup. The 1st popup doesn't seem to have the right session info. And the
> > same thing happens to the main window when I perform an action on the 1st
> > popup. None of this happens to IE 5.5 or netscape 6.x.
> >
> > Does anyone come across this problem before? Work around? Please HELP!!!
> >
> > Thanks in advance!!!
> >
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message