Your forgetting the ability of users to open links in new windows. Your user could have several windows open using the same session. Ditto for frames.
-----Original Message----- From: James Turner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 28 January 2003 08:30 To: 'Struts Users Mailing List' Subject: RE: [OT] Synchronizing Session Objects > From: David Graham [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 27, 2003 5:51 PM > To: [EMAIL PROTECTED] > Subject: [OT] Synchronizing Session Objects > > > I haven't found a definitive answer to whether you should > synchronize access > to objects stored in the session scope. Do you have to put a > synchronized > block around session objects when iterating over them or > modifying them? > I'm guessing that if you treat session or application scoped > objects as read > only you don't have to synchronize. Frankly, I wouldn't obsess about session scoped objects either. In order for a thread issue to intrude, they'd have to have two requests running against the same session at the same time, which can happen (submit, back, submit), but is uncommon. James Turner Owner & Manager, Black Bear Software, LLC [EMAIL PROTECTED] Author: MySQL & JSP Web Applications: Data Driven Programming Using Tomcat and MySQL ISBN 0672323095; Sams, 2002 Co-Author: Struts Kick Start ISBN 0672324725; Sams, 2002 Forthcoming: JavaServer Faces Kick Start Sams, Fall 2003 > -----Original Message----- > > > > > > _________________________________________________________________ > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. > http://join.msn.com/?page=features/virus > > > -- > To unsubscribe, e-mail: > <mailto:struts-user-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

