Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Objects in Session  RSS feed

 
Orem Hun
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When an object is stored in a session and later we change that object, does that change reflect in the stored object. For example:

My impression is that objInst gets serialized and stored in the session, so any changes that are made later will not be in the objInst. The above code will just print 99. Please correct me if this is wrong.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65825
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happened when you tried it?

In other words -- you've already written the code, you can answer this question easily for yourself. Why post here until you've tried it for yourself?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!