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 <[email protected]>:
> 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 <[email protected]>:
>> 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 <[email protected]>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to