public final class SimpleRedirectInvalidSessionStrategy extends Object implements InvalidSessionStrategy
SessionManagementFilter
.Constructor and Description |
---|
SimpleRedirectInvalidSessionStrategy(String invalidSessionUrl) |
Modifier and Type | Method and Description |
---|---|
void |
onInvalidSessionDetected(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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(String invalidSessionUrl)
public void onInvalidSessionDetected(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
onInvalidSessionDetected
in interface InvalidSessionStrategy
IOException
public void setCreateNewSession(boolean createNewSession)
SessionManagementFilter
.createNewSession
- defaults to true
.