transient objects in session

1.6k Views Asked by At

I have read in one of framework documentation, "If large objects are be required in the session, the application should define these as transient objects in the Session Manager"

How does defining those large object transient will make no impact on keeping large objects in session?

1

There are 1 best solutions below

1
On

The session objects are persisted by the web container session manager. If you store large objects in the session, then it will take more time to write those objects. If you make those objects as transient they will not be considered when the HttpSession object is serialized by the container.This reduces the time it takes to write the object out and also the space occupied in the database if one is used.