public final class SimpleRedirectInvalidSessionStrategy extends java.lang.Object implements InvalidSessionStrategy
SessionManagementFilter
.Constructor and Description |
---|
SimpleRedirectInvalidSessionStrategy(java.lang.String invalidSessionUrl) |
Modifier and Type | Method and Description |
---|---|
void |
onInvalidSessionDetected(HttpServletRequest request,
HttpServletResponse response) |
void |
setCreateNewSession(boolean createNewSession)
Determines whether a new session should be created before redirecting (to avoid
possible looping issues where the same session ID is sent with the redirected
request).
|
public SimpleRedirectInvalidSessionStrategy(java.lang.String invalidSessionUrl)
public void onInvalidSessionDetected(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException
onInvalidSessionDetected
in interface InvalidSessionStrategy
java.io.IOException
public void setCreateNewSession(boolean createNewSession)
SessionManagementFilter
.createNewSession
- defaults to true
.