I don't know if you can/should change other HttpSession directly. As
Mikolaj Rydzewski said, you could perform a HTTP request using a
different JSESSIONID cookie or a ;jsessionid URL rewriting.



On Mon, 2009-07-13 at 16:33 +0200, Yves Glodt wrote:
> Unfortunately what the blog above describes does not seem to work anymore...:
> 
> HttpSessionContext sc = request.getSession().getSessionContext();
> HttpSession userSession = sc.getSession(sessionId);
> userSession.setAttribute("myObject", cr);
> 
> It silently fails with an exception at the last line, an exception
> without a message...
> 
> 2009/7/13 Yves Glodt <ygl...@gmail.com>:
> > Thanks for telling. I found another way (deprecated) in the mean time:
> >
> > http://javasolution.blogspot.com/2007/08/getting-session-object-using-session-id.html
> >
> > 2009/7/13 Mikolaj Rydzewski <m...@ceti.pl>:
> >> Yves Glodt wrote:
> >>>
> >>> is it possible to "open" a different HttpSession than my "own" (if
> >>> it's session-id is known), and set an attribute in that session?
> >>>
> >>
> >> You can perform HTTP request with session cookie explicity set.
> >>
> >> --
> >> Mikolaj Rydzewski <m...@ceti.pl>
> >>
> >>

> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to