tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yves Glodt <ygl...@gmail.com>
Subject Re: Manipulate other session
Date Mon, 13 Jul 2009 14:33:51 GMT
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 <yglodt@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 <miki@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 <miki@ceti.pl>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>

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


Mime
View raw message