Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Httpsession  RSS feed

 
Atul Mishra
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a question about using Httpsession and session.setAttribute. If we use that to set a serialized object, should we always use synchronized keyword ?

Why ?

Thanks,
Atul
 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlet container will take care of synchronization for you and proper serialization session attributes as needed.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!