• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why data stored in a Session isn't Thread Safe?

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all , hope all of you are fine , if not you will be fine shortly .

In a web based Application , as far as i know Each user will have its own session
then why data stored in a session is not Thread Safe ??
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Each request has a different thread. If a user sends multiple or overlapping requests, they can all access the same session from different threads, hence not thread safe.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks David
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!