Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7BB0E11A2A for ; Wed, 2 Apr 2014 08:57:16 +0000 (UTC) Received: (qmail 96285 invoked by uid 500); 2 Apr 2014 08:57:12 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 95806 invoked by uid 500); 2 Apr 2014 08:57:11 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 95779 invoked by uid 99); 2 Apr 2014 08:57:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 08:57:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 08:57:08 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 95F201A3DF; Wed, 2 Apr 2014 08:56:46 +0000 (UTC) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: [Bug 56339] New: session listener invalidate session Date: Wed, 02 Apr 2014 08:56:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 7 X-Bugzilla-Component: Servlet & JSP API X-Bugzilla-Version: 7.0.47 X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: sivrisoner@yahoo.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=56339 Bug ID: 56339 Summary: session listener invalidate session Product: Tomcat 7 Version: 7.0.47 Hardware: PC OS: Linux Status: NEW Severity: blocker Priority: P2 Component: Servlet & JSP API Assignee: dev@tomcat.apache.org Reporter: sivrisoner@yahoo.com we have sessionlistener in sessionDestroyed method we call session.invalidate() in version 7.0.42 its ok but newer versions loops code public void sessionDestroyed(HttpSessionEvent arg0) { if(arg0 !=null && arg0.getSession() !=null) { HttpSession session = arg0.getSession(); String sessionId = session.getId(); if(sessionId != null) { UserPrincipal userPrincipal = (UserPrincipal)session.getAttribute(ContextVar.USERPRINCIPLE); if (userPrincipal != null) { UserOpBLO userOpBLO = new UserOpBLO(new ResourcePool()); userOpBLO.processLogoutActivity(sessionId, userPrincipal.getUserId()); CurrentSessions.SESSIONS.remove(sessionId); session.invalidate(); } } } } -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org