I am trying to do following.
1. to store some data(beans, flags etc) that will be used throughout the application (values may change)
what i did is I kept the data in the session but that is making the application to work slowly as there is quite a lot of data.
Someone told me that I can use Map<k,v> but how will the Map persist throught the session ?
please help me...
I want to keep some data persistent throught the session but without storing data in Session Object . Is this possible ?
You didn't answer my first question, and I don't see why you can't store data in the database given that the life cycle of database data is longer than the life cycle of a session. You just need some way to identify which database record goes with which session.
I've stored data directly on the file system at times, using the user ID as a directory name. This is a good idea when the data is not something that fits well in a typical database, like large images.