Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Http Session Attributes are Thread safe

 
PRavi kumar
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

are the Http Session Attributes are Thread safe.

if your get this type of question in Exam what is the answer. it's true or false ?.

Please expalin me in details
 
anil kumar
Ranch Hand
Posts: 447
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

kumar

They are not Thread-safe.ONLY REQUEST ATTRIBUTES AND LOCAL VARIABLES ARE THREAD-SAFE.


Thanks

Anil Kumar
[ June 25, 2007: Message edited by: anil kumar ]
 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I undertand and is easy remmber session attributes are not thread Safe.what havoc it may cause if they are not made thread safe. Any practical example.

199 page HFSJ

I don't understand what these sentences mean

"The client could open a new browser window!so the container can still use same session for a client, even though it's comming from different instance of the browser?"
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

This feature is purely browser dependent how the browser handle the session.

Thanks
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This feature is purely browser dependent how the browser handle the session.


That's true if the session tracking is based on session cookies. But if the session ID is encoded in the URL (or if it is based on permanent cookies), then it's easily possible to have two browser windows using the same session. Then you can make two simultaneous requests to the web app, causing concurrency problems with the session.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic