> -----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>

Reply via email to