This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How are JavaBeans stored in the session?  RSS feed

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I built an internal site that uses JSP's and JavaBeans. I have been instructed to reduce the amount and type of data that I store in the session. Is it true that session data is stored in a text file somewhere that can be accessed? If so, where is this file? Can it only be accessed when the session is alive? Is the data in this file stored in clear text (not encrypted)?
Furthermore, I store data about the user and the information he requested in JavaBeans. How are JavaBeans stored in the session? Are they also in this text file?
Does data stored in JavaBeans impact the size of the session? My instructions are to reduce the size of the session to 2KB/user. Do I need to count the data in the JavaBeans in this size?
Your answers are greatly appreciated! Thanks in advance.
 
author & internet detective
Marshal
Posts: 38249
623
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't heard anything about the server automatically creating a text file, but you can make one yourself.
Code is in the third post down.

Javabeans can be stored in either the request or the session.
 
Something must be done about this. Let's start by reading this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!