Keep keys, not whole objects If you keep whole objects in the session, do it with soft references. Keep keys to persistent objects instead. You will get better capacity, and your users will have a better experience: they can come back in an hour or a week and pick up where they left off.

