public interface SessionRegeneratingFilter
extends javax.servlet.Filter
onLoggingSuccess()
method of such filter to call the
regenerateSession(Subject)
method before invoking normal behavior:
@Override protected boolean onLoginSuccess(AuthenticationToken token, Subject subject, ServletRequest request, ServletResponse response) throws Exception { regenerateSession(subject); return super.onLoginSuccess(token, subject, request, response); }
Modifier and Type | Method and Description |
---|---|
default void |
regenerateSession(org.apache.shiro.subject.Subject subject)
Regenerate the session if any.
|
default void regenerateSession(org.apache.shiro.subject.Subject subject)
subject
- the successfully logged in subjectCopyright © 2013-2018–2019 SeedStack. All rights reserved.