public Cookie access(HttpSession session,boolean secure) { long now=System.currentTimeMillis(); Session s = ((SessionIf)session).getSession(); s.access(now); // Do we need to refresh the cookie? if (isUsingCookies() && (s.isIdChanged() || (getMaxCookieAge()>0 && getRefreshCookieAge()>0 && ((now-s.getCookieSetTime())/1000>getRefreshCookieAge())) ) ) { Cookie cookie=getSessionCookie(session,_context.getContextPath(),secure); s.cookieSet(); s.setIdChanged(false); return cookie; } return null; }
/** Remove session from manager * @param session The session to remove * @param invalidate True if {@link HttpSessionListener#sessionDestroyed(HttpSessionEvent)} and * {@link SessionIdManager#invalidateAll(String)} should be called. */ public void removeSession(HttpSession session, boolean invalidate) { Session s = ((SessionIf)session).getSession(); removeSession(s,invalidate); }
public String getNodeId(HttpSession session) { Session s = ((SessionIf)session).getSession(); return s.getNodeId(); }
public void complete(HttpSession session) { Session s = ((SessionIf)session).getSession(); s.complete(); }
public String getClusterId(HttpSession session) { Session s = ((SessionIf)session).getSession(); return s.getClusterId(); }
public boolean isValid(HttpSession session) { Session s = ((SessionIf)session).getSession(); return s.isValid(); }