Hi Andras,
Actually, the session object is different even for different browser
instances even when both are logged to same site, two browsers can have same
session id only if we right click in one browser window, and click a link
open in a new window or from file menu open new window, but that is not
usual, so it is that we do have two different sessions.

AKHIL

----- Original Message -----
From: Andras Balogh <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 22, 2000 3:12 PM
Subject: Re: synchronized(HttpSession) - Why should I??


> ----- Original Message -----
> From: "Ramanathan Subbarayan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 21, 2000 7:32 PM
> Subject: Re: synchronized(HttpSession) - Why should I??
>
>
> > The session object is the same across all the requests (for example,
many
> browser
> > instances) from the same client. So, we need to synchronize the code to
do
> any
> > changes to the session object.
>
>
> My opinion that this is NOT TRUE.
>
> The servlet engine takes care of accessing the objects in the Session.
> I think ( i am not sure) that the putValue and getValue functions are
> sychronized or
> contains a sychronized block.
>
> Any comments related to this?
>
> Andras.
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to