Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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
Sheriff
Posts: 38564
654
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!