And that would be only if you are sending multiple request from the same browser window which is not usually the case. Normally, we dont send a request again unless the response from the previous ones is returned. If the problem is that the user presses the submit button on the web page multiple times, there are other good ways of avoiding it rather than making the objects in session thread safe. Anyways, you have a point there. ----- Original Message ----- From: "Christopher K.St.John" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 14, 2002 7:35 PM Subject: Re: Does Tomcat Synchronize the Session Object???
> Nauman Rafique wrote: > > > > I believe it all depends on what objects you are storing in > > session. If you instantiate an Object and place it in session > > inside doGet()/doPost() methods, they are unique to the > > session and thus cannot be shared. > > > > I don't see how being unique to the session means that > they can't be shared. Two requests can be in the same > session at the same time. If one request thread places > an object in the session, the other request thread may > get the object and manipulate it while the other request > is still running. > > > -- > 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 =========================================================================== 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
