I have exactly the same problem. I am working on a solution but still no
luck. This problem happens to me only when i am using Netscape 4.79. IE 5.5
and Netscape 6.2.2 are OK.

I find that IE 5.5 creates a new session in a new window when IE 5.5 is run
by clicking on its icon. However, if a new IE 5.5 window is opened by
javascript from another IE 5.5 window, the same session is maintained.

As for Netscape 6.2.2, it doesn't matter if a new windows is opened by
clicking on its icon or by javascript from another Netscape window.

As for Netscape 4.79, the session is also maintained if another window is
opened ny clicking on its icon. However, if a new window is opened by
javascript from another window, the new window is able to access the session
to render the info for display but when an action is done on the new window,
a new session kicks in and the old session is unknown. Somehow, Netscape
4.79 pops up a new window as a different process.

Please HELP!!! I hope my description of the problem is clear enough.

-----Original Message-----
From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 02, 2002 02:56 PM
To: Tomcat Users List
Subject: Re: session object [urgent!]


I have found a kind of bug or I don't know what....
I tried to access to the session's attributes, with another servlet-engine
and it works perferct!
So... I think Tomcat 3.3 (I'm using) has a bug or maybe it is a cause of a
bad configuration because the
track is lost....

What do you think about it?
Does any of you have the same problem with sessions?



Nancy Crisostomo Martinez wrote:

> Hi everybody!
>
> I need your help..
> I'm trying to track some attributes I added to the session object, but I
> can't...
>
> I have an html file (main.htm) which opens a new window browser
> (validate.jsp) when you press a button to access to one service...
> Then when the user is validated in the validate.jsp file, I added two
> attributes to the session object like this:
>
>      .......
>      <%
>      if (validUser(id_Usuario)){
>         session.setAttribute("numero",id_Usuario);
>         session.setAttribute("edad",num);
>      .......
>
> and finally the window is closed and another new window is opened (
> portal.jsp ).
>
>      %>
>                  <script>
>
>
window.open("portal.jsp","","top=0,left=0,width=791,height=520,scrollbars=ye
s,resizable=yes,status=yes")
>
>                      return eval('close()')
>                  </script>
>      <%
>      }
>      %>
>
> The portal.jsp file is formed by frames:
>
>           <HTML>
>           <FRAMESET rows="75,250*" frameborder="0" border="0"
> framespacing="0">
>                   <FRAME name="FrameArriba" scrolling="NO" noresize
> marginwidth="0" marginheight="0" SRC="arriba.htm" frameborder="0">
>
>                  <FRAMESET cols="128,127*"  border="0" framespacing="0"
> frameborder="0">
>                          <FRAME name="FrameIzquierda" scrolling="NO"
> marginwidth="0" marginheight="0" noresize SRC="izquierda.jsp"
>           frameborder="NO">
>                          <FRAME name="FrameServicio" marginwidth="0"
> marginheight="0" noresize SRC="blanco.jsp" frameborder="NO" >
>                  </FRAMESET>
>
>                  <NOFRAMES>
>                        Su browser no acepta Frames.
>                  </NOFRAMES>
>           </FRAMESET>
>           </HTML>
>
> In the left frame (FrameIzquierda) I have a jsp file (izquierda.jsp)
> that reads the new session's attributes (numero,edad) and they are
> displayed perfectly when the
> portal.jsp file is opened. Moreover, in the right frame I put a jsp file
> (blanco.jsp) that also reads the attributes 'id' and 'ag' and they are
> perfectly displayed too.
> But the problem becomes when I click a link placed in the izquierda.jsp
> file :
>
>      .....
>      <a href="top.jsp">test</a>
>      or
>      <a href="top.jsp" target="FrameServicio" >test</a>
>      .....
>
> The top.jsp file also reads the attributes (numero, edad)...
> In both cases the session's attributes are not displayed, they only
> return a "null" value,  and the session id (session.getId()) is
> differtent because when the link is
> pressed, a new session object is created....so.. I don't know how to fix
> this....
> I really need to get the two attributes I stored previously in the
> session object...
>
> Could you please help me???
> I'm desperate!!
>
> Thank you in advance..
> Nancy.
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to