st"
Sent: Friday, June 02, 2006 9:11 PM
Subject: Re: Retrieve certain session data inside a servlet
On Fri, Jun 02, 2006 at 11:15:03AM +0200, Carlos Alonso Vega wrote:
Bob,
Thanks for the reply. My problem is that the session info I need is not
of the session that makes the request. I need to c
opy. Thank you.
- Original Message -
From: "Eric Haszlakiewicz" <[EMAIL PROTECTED]>
To: "Carlos Alonso Vega" <[EMAIL PROTECTED]>
Cc: "Tomcat Users List"
Sent: Friday, June 02, 2006 9:11 PM
Subject: Re: Retrieve certain session data inside a servlet
I may be wrong about this, but I thought that it was expressly forbidden
by the servlet spec to be able to get arbitrary sessions. That is, even
if you store the session ID in some table, you wouldn't be able to get
any session other than that associated with the current request.
Now, that re
On Fri, Jun 02, 2006 at 11:15:03AM +0200, Carlos Alonso Vega wrote:
> Bob,
>
> Thanks for the reply. My problem is that the session info I need is not
> of the session that makes the request. I need to check other sessions in
> the same context. I can use the request because it is in the same
Carlos,
The javadoc indicates that the methods are deprecated,
but it looks like you could use:
HttpSession mySess = request.getSession();
// getSessionContext() is deprecated
HttpSessionContext sessCtx =
mySess.getSessionContext();
// getSession(String) is deprecated
HttpSession otherSess =
se
Bob,
Thanks for the reply. My problem is that the session info I need is not
of the session that makes the request. I need to check other sessions in
the same context. I can use the request because it is in the same
context, so the manager is the same.
This servlet is called internally from
--- Carlos Alonso Vega <[EMAIL PROTECTED]> wrote:
>
> I am trying to obtain data about a session inside a
> servlet, the code
> seems to be simple as
>
> localSession =
> Ctx.getManager().findSession(sessionId);
>
> My problem is that I do not know how to obtain the
> Ctx object from a
> requ
I am trying to obtain data about a session inside a servlet, the code
seems to be simple as
localSession = Ctx.getManager().findSession(sessionId);
My problem is that I do not know how to obtain the Ctx object from a
request (HttpServletRequest)
Thanks in advance
---