Amount of data stored in session

Posted by srinannapa on Stack Overflow See other posts from Stack Overflow or by srinannapa
Published on 2010-03-25T11:41:50Z Indexed on 2010/03/25 11:53 UTC
Read the original article Hit count: 358

Filed under:
|
|
|

What technique should we use to make the httpsession object not loaded heavily with data.

Example :

Request 1 ---- > httpSession loaded with an arraylist of 50,000 different objects. session.setAttribute("data",arraylist);

Request 2 ---- > httpSession loaded with an arraylist of 40,000 different objects. session.setAttribute("data",arraylist);

Assume the server is loaded heavily with multiple sessions and huge data in them. Let us say from my above example request1..1000 at a time. Which means 1000 session objects with huge data.

What is the alternate way to solve instead storing them in session like this?

© Stack Overflow or respective owner

Related posts about java

Related posts about jsp