public void onLogin() {
// Store the regular session timeout value, so we can set it back later on logout
int regularSessionTimeout = ServletContexts.getInstance().getRequest().getSession().getMaxInactiveInterval();
Contexts.getSessionContext().set(REGULAR_SESSION_MAX_INACTIVE_SECONDS, regularSessionTimeout);
WikiInit init = (WikiInit)Component.getInstance(WikiInit.class);
if (init.getAuthenticatedSessionTimeoutMinutes() != 0) {
log.debug("setting timeout of authenticated user session to minutes: " + init.getAuthenticatedSessionTimeoutMinutes());
ServletContexts.getInstance().getRequest().getSession().setMaxInactiveInterval(
init.getAuthenticatedSessionTimeoutMinutes()*60
);
}
// Prepare redirect stuff
if (documentHome != null && documentHome.isManaged()) {