While it's true that you NORMALLY will only get one request at a time per
session, the fact that you CAN get more means that your code has to take
that into account. Some browsers share cookies for every instance that is
open on the same desktop, which means if you have two windows up on the same
machine pointing at the same server, it's possible that they are sharing the
same session. It's also possible for someone to hit a submit button twice
in quick succession and cause multiple requests. So it's safest to protect
your session data and never have to track down one of these mysterious bugs.
(*Chris*)
----- Original Message -----
From: "Christopher K. St. John" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 7:58 AM
Subject: Re: [JSP-INTEREST] Does Tomcat Synchronize the Session Object???
> Nauman Rafique wrote:
> >
> > And that would be only if you are sending multiple request
> > from the same browser window which is not usually the case.
> >
>
> Multiple simultaneous requests from the same browser
> is the normal case.
>
>
> > Normally, we dont send a request again unless the
> > response from the previous ones is returned.
> >
>
> I'm not sure I understand. Are you saying that you
> have a special web client that works that way? If so,
> then I see that your session access would be serialized.
> But that's not how most web clients work.
>
> Most browsers will try to download several page
> elements at once. Some clients 'pre-load' in the
> background based on the links on the page. Many
> people open several windows and browse different
> parts of a site simultaneously. Etc, etc.
>
>
>
> --
> Christopher St. John [EMAIL PROTECTED]
> DistribuTopia http://www.distributopia.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com