I call again the servlet because it do different actions.
For examples:
     First call it set some enviroment variables
     Second call it make a user login.

I use getSession() to get the current session. It's work fine in Apache
Tomcat without ssl but in ssl I have the problem.

Any idea.
Regards
Alejandro




"Larry Isaacs" <[EMAIL PROTECTED]> con fecha 05/11/2002 12:58:32

Por favor, responda a "Tomcat Users List" <[EMAIL PROTECTED]>

Destinatarios: "Tomcat Users List" <[EMAIL PROTECTED]>
CC:        (cci: ALEJANDRO FREIRE/BANELCO/AR)
Asunto:   RE: URGENT= Problem with Session Cookie






> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:afreire@;banelco.com.ar]
> Sent: Tuesday, November 05, 2002 9:19 AM
> To: Tomcat Users List
> Subject: RE: URGENT= Problem with Session Cookie
>
>
> Sorry I said that the servlet have multiples instances because I have
> differents actions in it depend on the http parameter that it
> receive.  For
> me ay instance in a servlet is different actions. That is clear?
>
> If you see the javadoc about req.getSession(), you that this
> method only
> create the session if that not exists.
Yes, the same behavior as "req.getSession(true)".
How is the "second action" request invoked?  Are frames involved?
Frames are often the cause of "Why do I get a new session?" questions.
> But I don't know  why I tomcat 3.2.3 that it works and in tomcat 3.3.1
> don't.
Tomcat 3.3.1 fixed many bugs.  It is possible that your webapp's
behavior is dependent on one of them or on a performance difference.
Tomcat 3.3.x is much faster than Tomcat 3.2.x.
Cheers,
Larry
>
> Any idea.
> Regards
> Alejandro
>
>
>
>
> "Larry Isaacs" <[EMAIL PROTECTED]> con fecha 05/11/2002 11:05:15
>
> Por favor, responda a "Tomcat Users List"
> <[EMAIL PROTECTED]>
>
> Destinatarios: "Tomcat Users List" <[EMAIL PROTECTED]>
> CC:        (cci: ALEJANDRO FREIRE/BANELCO/AR)
> Asunto:   RE: URGENT= Problem with Session Cookie
>
>
>
>
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:afreire@;banelco.com.ar]
> > Sent: Tuesday, November 05, 2002 7:19 AM
> > To: [EMAIL PROTECTED]
> > Subject: URGENT= Problem with Session Cookie
> >
> >
> > I'm using Apache with Tomcat 3.3.1.
> > I have a servlet with multiples instances. When I call it in
> > first time a
> > create the sesssion (session = req.getSession(true)) and set
> > several info
> > in the session, after that I call another instance of this
> > servlet that use
> > the data saved in the firts time. My probles is that when I
> > call the second
> > instance Tomcat create again the session and I lost all
> previous data.
> It isn't clear to me what you mean by "servlet with multiples
> instances".  For typical use, Tomcat creates one instance of a
> "servlet", where "servlet" corresponds to a <servlet-mapping>
> in the web.xml or what gets executed by ".../servlet/<classname>"
> for a request.  Please explain.
> Also, what does "I call the second instance" mean.  Is
> this a forward, an include, a redirect, what?
> >
> > For read the session I use: session = req.getSession(). I use
> > that in the
> > top of the servlet and for every instance. Then to create the
> > session in a
> > espefic instance I use: session = req.getParameter(true).
> Note that "req.getSession()" does the same thing as
> "req.getSession(true)" (I'm assuming getParameter(true) above
> is a typo).  Both will create a session, where
> "req.getSession(false)" won't.
> Larry
> >
> > That's works fine under Tomcat 3.2.3, but I need to upgrade it.
> >
> > Anybody could help me?
> >
> > Regards
> > Alejandro
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
> >
> >
> --
> To unsubscribe, e-mail:   <
> mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <
> mailto:tomcat-user-help@;jakarta.apache.org>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
>
>
--
To unsubscribe, e-mail:   <
mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <
mailto:tomcat-user-help@;jakarta.apache.org>








--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to