Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How are JavaBeans stored in the session?  RSS feed

 
verduka fox
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.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37249
519
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!