tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GOKULA KRISHNAN <gok...@gmail.com>
Subject Re: Trigger sessionDestroyed event from custom ManagerBase
Date Tue, 04 Oct 2016 12:53:00 GMT
Hi Mark,

Thanks a lot for your reply.

I'm trying to implement Redis valve (included in tomcat's context.xml) for
custom session management by my own logic. Everything is working fine
except the sessionDestroyed event. My sessionDestroyed is not called when
session expires/timeout but it is called during invalidate() call.

If I remove the valve from context.xml, it works fine. Hope I explained the
issue, revert to me if you need any further clarification.

Thanks,
Gokul.

On Tue, Oct 4, 2016 at 12:51 PM, Mark Thomas <markt@apache.org> wrote:

> On 03/10/2016 17:38, GOKULA KRISHNAN wrote:
> > Hi,
> >
> > I want to trigger the sessionDestroyed event from custom implementation
> of
> > ManagerBase. sessionDestroyed is not called when session expires but
> called
> > during session invalidate. I need to call sessionDestroyed  during
> session
> > time out.
>
> This makes no sense.
>
> session expiration, session invalidate and session timeout are all,
> essentially, the same thing.
>
> A call to isValid() checks, amongst other things, the timeout and
> expires the session if there has been no activity for at least the
> timeout period.
>
> You are going to have to be a LOT clearer about what you are trying to
> achieve. Better still, explain the real requirement rather than asking
> how to implement what you think is the right solution.
>
> Mark
>
> >
> > The class starts like this.
> >
> > *public class CustomRequestSessionManager extends ManagerBase implements
> > Lifecycle*
> > {...
> > ..}
> >
> > Please help me ASAP, since this is an urgent need.
> >
> > Thanks,
> > Gokul.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message