• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How are JavaBeans stored in the session?

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic