aspose file tools
The moose likes Servlets and the fly likes Thread Safety Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Thread Safety" Watch "Thread Safety" New topic

Thread Safety

Sam Furtado
Ranch Hand

Joined: Jul 16, 2002
Posts: 45
Hi Guys !!!
Was not sure whether session variables are thread safe since, each user has his own session variables ??? Pls do let me know.

Sun Certified Java Programmer<br />Sun Certified Web Component Developer
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12868
Session variables are NOT inherently protected from being accessed by multiple Threads since a given user/browser may be running many requests from the same web application at the seme time.
For example, frames, requests for images, etc.
Don't get me started about those stupid light bulbs.
subject: Thread Safety