according to the servlet spec by the time you get session invalidation
notification you can no longer access session attributes in the
invalidated session so you cannot store information like this in
session itself. instead you need some sort of map:session->info, but
then you have to cluster that yourself, etc. see HttpSessionListener.

-igor

On Thu, Jun 19, 2008 at 4:24 PM, Eyal Golan <[EMAIL PROTECTED]> wrote:
> Hello,
> Is there a method in Session that is called when the Session is ended?
> Ended = user logs out (invalidate) or time-out (or anything else that can do
> that)
>
> My goal is to keep some information in the session and persist it when the
> session terminates.
>
> Is it "legal" to create a Thread (as a member in the Session / Application)
> that every X minutes will get information from the Session and "do something
> with it"?
>
> --
> Eyal Golan
> [EMAIL PROTECTED]
>
> Visit: http://jvdrums.sourceforge.net/
> LinkedIn: http://www.linkedin.com/in/egolan74
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to