A self-editor would now be seen by LoginStatusBean.isLoggedIn()
This commit is contained in:
parent
da7f10cd0a
commit
4d2806d8f1
1 changed files with 5 additions and 5 deletions
|
@ -27,9 +27,12 @@ public class SessionTimeoutLimitingFilter implements Filter {
|
||||||
/** Maximum inactive interval for a trivial session object, in seconds. */
|
/** Maximum inactive interval for a trivial session object, in seconds. */
|
||||||
private static final int TRIVIAL_SESSION_LIFETIME = 120;
|
private static final int TRIVIAL_SESSION_LIFETIME = 120;
|
||||||
|
|
||||||
|
@Override
|
||||||
public void init(FilterConfig filterConfig) throws ServletException {
|
public void init(FilterConfig filterConfig) throws ServletException {
|
||||||
|
// nothing to do here.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void doFilter(ServletRequest servletRequest,
|
public void doFilter(ServletRequest servletRequest,
|
||||||
ServletResponse servletResponse, FilterChain filterChain)
|
ServletResponse servletResponse, FilterChain filterChain)
|
||||||
throws IOException, ServletException {
|
throws IOException, ServletException {
|
||||||
|
@ -60,15 +63,12 @@ public class SessionTimeoutLimitingFilter implements Filter {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If self-editing, leave it alone.
|
|
||||||
if (VitroRequestPrep.isSelfEditing(request)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Otherwise, it's trivial, so shorten its life-span.
|
// Otherwise, it's trivial, so shorten its life-span.
|
||||||
session.setMaxInactiveInterval(TRIVIAL_SESSION_LIFETIME);
|
session.setMaxInactiveInterval(TRIVIAL_SESSION_LIFETIME);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void destroy() {
|
public void destroy() {
|
||||||
|
// nothing to clean up.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue