« Return to Thread: retrieving two different objects from session (should be the same)

Re: retrieving two different objects from session (should be thesame)

by Abid Hussain :: Rate this Message:

Reply to Author | View in Thread

Hi,

> The result of HttpServletRequest.getSession gives you a SessionFacade
> which is not guaranteed to be the same as the one given to another
> thread accessing the same session (right?). You could synchronize using
> an object stored /in/ the session, but then you have to worry about that
> object being replaced, etc.
so this means, it's specified behaviour that there is no guarantee,
having an object placed in session would be the same after retrieving it
after some time...?

Regards,

Abid

--

Abid Hussain
Mail: abid.hussain@...
Web: http://www.abid76.de

---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: retrieving two different objects from session (should be the same)

LightInTheBox - Buy quality products at wholesale price