struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Re: [s] Validity of user session
Date Wed, 02 Jul 2008 19:09:07 GMT
Milan Milanovic wrote:
> I have an SessionAware-based action class, where I put some variables into
> session when user came to the page which is backed up with that action
> class. I'm wondering what is validity of that session object, because I'm
> not sure if I have possibility to clear user session ? So I need to know
> when session will be deleted with all its objects inside ? When user go to
> some other page which is not backed-up with this class or some other action
> class ?

I'm not sure I understand your question. The session you access through 
SessionAware is the standard Servlet API session, which lasts for as 
long as the user remains active in the application. If you want to store 
data only until the next request, use request scope instead of session 
scope.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message