Friday, October 22, 2004 08:32 AM
I have been using Struts for some years to full satisfaction. But lately I have been running into problems with the use of the Session based variables. The problem I have is that sometimes I need variable that I can use for 'a while' but that should expire if no longer used. I typically put these in the session of the user. However, these Sessions can become quite big.
It is hard to guarantee the cleanup since I don't know what else the user is doing. I can not wait for a submit or something since he might decide to click on something else. Also, just clearing all variables before starting a new resource intensive path is hard too. The user (session) could have multiple windows op. What I am thinking about is creating a session based cache. Every object I store in this cache I can give a timeout so that it clears automagically.
What I am wondering is: 1) does this exist already? and 2) any comments on this approach?
Re: Session Cache: does it exist?
Saturday, October 23, 2004 07:20 AM