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 1A11B200C22 for ; Tue, 21 Feb 2017 16:13:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 188C3160B68; Tue, 21 Feb 2017 15:13:50 +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 61067160B3E for ; Tue, 21 Feb 2017 16:13:49 +0100 (CET) Received: (qmail 57853 invoked by uid 500); 21 Feb 2017 15:13:48 -0000 Mailing-List: contact dev-help@shiro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@shiro.apache.org Delivered-To: mailing list dev@shiro.apache.org Received: (qmail 57842 invoked by uid 99); 21 Feb 2017 15:13:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2017 15:13:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 05881185E69 for ; Tue, 21 Feb 2017 15:13:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 14TyfjWGAa2p for ; Tue, 21 Feb 2017 15:13:47 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id F02FF5FCD0 for ; Tue, 21 Feb 2017 15:13:46 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3AD7DE0657 for ; Tue, 21 Feb 2017 15:13:46 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0321924127 for ; Tue, 21 Feb 2017 15:13:45 +0000 (UTC) Date: Tue, 21 Feb 2017 15:13:45 +0000 (UTC) From: "Brian Demers (JIRA)" To: dev@shiro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SHIRO-613) StoppedSessionException: Session with id has been explicitly stopped. No further interaction under this session is allowed. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 21 Feb 2017 15:13:50 -0000 [ https://issues.apache.org/jira/browse/SHIRO-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15876132#comment-15876132 ] Brian Demers commented on SHIRO-613: ------------------------------------ It can, that is the point of that method, but it relies on a the Subject creation and association with the thread. This can be done in a few ways (and handled out of the box in servlet and non-servlet environments). That said, you may want to take a look at [Shiro's Thread Association|https://shiro.apache.org/subject.html#thread-association] doc for more details. > StoppedSessionException: Session with id has been explicitly stopped. No further interaction under this session is allowed. > ---------------------------------------------------------------------------------------------------------------------------- > > Key: SHIRO-613 > URL: https://issues.apache.org/jira/browse/SHIRO-613 > Project: Shiro > Issue Type: Bug > Components: Authentication (log-in), Session Management > Affects Versions: 1.3.2 > Reporter: sreenivas Harshith > Labels: Sessiontimeout, StoppedSessionException, login, session > > I am using default shiro native session manager and Session DAO backed by Db store for storing sessions. I have set the session timeout to 10 min and I have the same user login multiple times, say 8 times. Once the session is expired I tried to login with same user credentials from a different client and shiro is calling this delete(Session sn) method implemented in my DAO to delete those old sessions that are expired. Once the deletion is completed it throws an exception with the deleted Session id saying org.apache.shiro.session.StoppedSessionException: Session with id [a9dd97a1-90d4-435c-b363-f74052dfa0dc] has been explicitly stopped. No further interaction under this session is allowed, and it fails to login the user. -- This message was sent by Atlassian JIRA (v6.3.15#6346)