Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D765B200B8B for ; Tue, 4 Oct 2016 14:53:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D5EAA160AC9; Tue, 4 Oct 2016 12:53:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2859E160AC5 for ; Tue, 4 Oct 2016 14:53:06 +0200 (CEST) Received: (qmail 59556 invoked by uid 500); 4 Oct 2016 12:53:04 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 59523 invoked by uid 99); 4 Oct 2016 12:53:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2016 12:53:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 05F28CCC87 for ; Tue, 4 Oct 2016 12:53:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id w2v55uJY1Y8N for ; Tue, 4 Oct 2016 12:53:02 +0000 (UTC) Received: from mail-yw0-f175.google.com (mail-yw0-f175.google.com [209.85.161.175]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id E59695F399 for ; Tue, 4 Oct 2016 12:53:01 +0000 (UTC) Received: by mail-yw0-f175.google.com with SMTP id t193so49623643ywc.2 for ; Tue, 04 Oct 2016 05:53:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=7WMt943kamzXEaU+clBOce0nlt1W/I9Wh701MpHzQac=; b=Oln7tAxVLpLK9HzWpSEVYKjVHUYYEv7Ozr9ztJ/dnnis8EBMzyaKbwjpHjtIiZ6SrI Fknj/Uu5uWZBhcu0sHZEZfDK1P28ZSkCraRo7AI7my9WW6GCFxLnmj8Ru4rvswYMynd8 B8kHng0Cl/XkcmO/JzaNiZHwWvwg4dsMKJdUIHqH9XC0uCX6Zl+jZiH8GhWWaWBNen8K myJLcjXaEGuA4psMkWSBsaNMYqtljVyUXrb6D6IS0R/t0up4cBHnedXH0Wlv1mapwre/ ZcdwEvVcTTPs/GGa/zpsWvHn8TozJ69wtGobBpRR7fIfs7xFopxgiu+0ItrtdE8f622I 28xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=7WMt943kamzXEaU+clBOce0nlt1W/I9Wh701MpHzQac=; b=IjGJjuGCfrXBmFH3O0bK0Jdnz7/QqJDN74Pz737S3Xup/W10wvL1Vj4HjAdzpDJrkB EdTaG3sgC/Dd54VS1jNzuo32ncXSxoxymOF3WoHTadwtdBk4elj6VrNBeNVtFsCtoo40 bxqJM+upUqdF+IZl9I8VgYNT/UWkR7tNsDAi87cyg8Yoq3YYAgPjWmjwOE1SnzDd1GkE rhM7694GxL2tEhSaQ+eq9VksR/DlQfXMInYz5H2jSZDfXWK/ekSFUbNW0CfWCyFJ5KIE W7MFRoBjGJ3zqL8OGIx7H8XlVxBiQAfU8E7CBz+Fkii6t0PwYqFM5z5CdE7vxwTHFJhl V3Ag== X-Gm-Message-State: AA6/9RlHKTLHNMkV4n0c9atW/NSzq5KPRKqwaX/FsCRAOBb3NEJJ/ID4yOihvx7qtHreFkY3IqaPN4dWLk9Ibg== X-Received: by 10.13.213.17 with SMTP id x17mr2309987ywd.187.1475585581261; Tue, 04 Oct 2016 05:53:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.248.22 with HTTP; Tue, 4 Oct 2016 05:53:00 -0700 (PDT) In-Reply-To: <2b7c9b1d-28bb-5a08-7540-3fe64eefa296@apache.org> References: <2b7c9b1d-28bb-5a08-7540-3fe64eefa296@apache.org> From: GOKULA KRISHNAN Date: Tue, 4 Oct 2016 18:23:00 +0530 Message-ID: Subject: Re: Trigger sessionDestroyed event from custom ManagerBase To: Tomcat Users List Content-Type: multipart/alternative; boundary=001a114fb7f2682a99053e098ad6 archived-at: Tue, 04 Oct 2016 12:53:07 -0000 --001a114fb7f2682a99053e098ad6 Content-Type: text/plain; charset=UTF-8 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 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 > > --001a114fb7f2682a99053e098ad6--