Questions Tagged With sessionhttps://answers.axonivy.com/tags/session/?type=rss&user=Stefanquestions tagged <span class="tag">session</span>enWed, 27 Mar 2019 08:02:06 -0400How to remove a "unknown user"-sessionhttps://answers.axonivy.com/questions/3748/how-to-remove-a-unknown-user-session<p>If I logout a user from it's session (session.logoutSessionUser()), the session is still existing with an "unknown user". </p> <pre><code> ISecurityManager secMgr = SecurityManager.getSecurityManager(); for (ISession ssn : secMgr.getSessions()) { if (ssn.getSessionUserName().equalsIgnoreCase("xyz")) { ssn.logoutSessionUser(); } } </code></pre> <p>The session disappears only after a timeout (that might be the timeout defined in the tomcat configuration)</p> <p>However: Is there a way to close/kill a session immediately after logging out a user?</p>StefanWed, 27 Mar 2019 08:02:06 -0400https://answers.axonivy.com/questions/3748/how-to-remove-a-unknown-user-sessionsession