Hi,
I have another question concerning sessions together with frames.
If a request sent from frame1 has the servlet generate a session using 'getSession()' 
and then later on frame2
of the same frameset sends a request (which should belong to the same session), will
then the servlet find the same (=generated by frame1 before) sessionID with all the 
stored data?


> -----Original Message-----
> From: Akhil Gupta [SMTP:[EMAIL PROTECTED]]
> Sent: mercredi 21 juin 2000 14:02
> To:   [EMAIL PROTECTED]
> Subject:      Re: synchronized(HttpSession) - Why should I??
>
> 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

___________________________________________________________________________
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