/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { synchronized (this) { if (super.access(time)) { int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; } }
/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { synchronized (this) { if (super.access(time)) { int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; } }
/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { synchronized (this) { if (super.access(time)) { int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; } }
/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { synchronized (this) { if (super.access(time)) { int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; } }
/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { synchronized (this) { if (super.access(time)) { int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; } }
/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { if (super.access(time)) { _data.setLastAccessed(_data.getAccessed()); _data.setAccessed(time); int maxInterval=getMaxInactiveInterval(); _data.setExpiryTime(maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; }
/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { if (super.access(time)) { _data.setLastAccessed(_data.getAccessed()); _data.setAccessed(time); int maxInterval=getMaxInactiveInterval(); _data.setExpiryTime(maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; }
public HttpCookie access(HttpSession session,boolean secure) { long now=System.currentTimeMillis(); AbstractSession s = ((SessionIf)session).getSession(); if (s.access(now)) { // Do we need to refresh the cookie? if (isUsingCookies() && (s.isIdChanged() || (getSessionCookieConfig().getMaxAge()>0 && getRefreshCookieAge()>0 && ((now-s.getCookieSetTime())/1000>getRefreshCookieAge())) ) ) { HttpCookie cookie=getSessionCookie(session,_context==null?"/":(_context.getContextPath()),secure); s.cookieSet(); s.setIdChanged(false); return cookie; } } return null; }
public HttpCookie access(HttpSession session,boolean secure) { long now=System.currentTimeMillis(); AbstractSession s = ((SessionIf)session).getSession(); if (s.access(now)) { // Do we need to refresh the cookie? if (isUsingCookies() && (s.isIdChanged() || (getSessionCookieConfig().getMaxAge()>0 && getRefreshCookieAge()>0 && ((now-s.getCookieSetTime())/1000>getRefreshCookieAge())) ) ) { HttpCookie cookie=getSessionCookie(session,_context==null?"/":(_context.getContextPath()),secure); s.cookieSet(); s.setIdChanged(false); return cookie; } } return null; }
@Override public HttpCookie access(HttpSession session,boolean secure) { long now=System.currentTimeMillis(); AbstractSession s = ((SessionIf)session).getSession(); if (s.access(now)) { // Do we need to refresh the cookie? if (isUsingCookies() && (s.isIdChanged() || (getSessionCookieConfig().getMaxAge()>0 && getRefreshCookieAge()>0 && ((now-s.getCookieSetTime())/1000>getRefreshCookieAge())) ) ) { HttpCookie cookie=getSessionCookie(session,_context==null?"/":(_context.getContextPath()),secure); s.cookieSet(); s.setIdChanged(false); return cookie; } } return null; }
public HttpCookie access(HttpSession session,boolean secure) { long now=System.currentTimeMillis(); AbstractSession s = ((SessionIf)session).getSession(); if (s.access(now)) { // Do we need to refresh the cookie? if (isUsingCookies() && (s.isIdChanged() || (getSessionCookieConfig().getMaxAge()>0 && getRefreshCookieAge()>0 && ((now-s.getCookieSetTime())/1000>getRefreshCookieAge())) ) ) { HttpCookie cookie=getSessionCookie(session,_context==null?"/":(_context.getContextPath()),secure); s.cookieSet(); s.setIdChanged(false); return cookie; } } return null; }
public HttpCookie access(HttpSession session,boolean secure) { long now=System.currentTimeMillis(); AbstractSession s = ((SessionIf)session).getSession(); if (s.access(now)) { // Do we need to refresh the cookie? if (isUsingCookies() && (s.isIdChanged() || (getSessionCookieConfig().getMaxAge()>0 && getRefreshCookieAge()>0 && ((now-s.getCookieSetTime())/1000>getRefreshCookieAge())) ) ) { HttpCookie cookie=getSessionCookie(session,_context==null?"/":(_context.getContextPath()),secure); s.cookieSet(); s.setIdChanged(false); return cookie; } } return null; }
public HttpCookie access(HttpSession session,boolean secure) { long now=System.currentTimeMillis(); AbstractSession s = ((SessionIf)session).getSession(); if (s.access(now)) { // Do we need to refresh the cookie? if (isUsingCookies() && (s.isIdChanged() || (getSessionCookieConfig().getMaxAge()>0 && getRefreshCookieAge()>0 && ((now-s.getCookieSetTime())/1000>getRefreshCookieAge())) ) ) { HttpCookie cookie=getSessionCookie(session,_context==null?"/":(_context.getContextPath()),secure); s.cookieSet(); s.setIdChanged(false); return cookie; } } return null; }
public HttpCookie access(HttpSession session,boolean secure) { long now=System.currentTimeMillis(); AbstractSession s = ((SessionIf)session).getSession(); if (s.access(now)) { // Do we need to refresh the cookie? if (isUsingCookies() && (s.isIdChanged() || (getSessionCookieConfig().getMaxAge()>0 && getRefreshCookieAge()>0 && ((now-s.getCookieSetTime())/1000>getRefreshCookieAge())) ) ) { HttpCookie cookie=getSessionCookie(session,_context==null?"/":(_context.getContextPath()),secure); s.cookieSet(); s.setIdChanged(false); return cookie; } } return null; }
public HttpCookie access(HttpSession session,boolean secure) { long now=System.currentTimeMillis(); AbstractSession s = ((SessionIf)session).getSession(); if (s.access(now)) { // Do we need to refresh the cookie? if (isUsingCookies() && (s.isIdChanged() || (getSessionCookieConfig().getMaxAge()>0 && getRefreshCookieAge()>0 && ((now-s.getCookieSetTime())/1000>getRefreshCookieAge())) ) ) { HttpCookie cookie=getSessionCookie(session,_context==null?"/":(_context.getContextPath()),secure); s.cookieSet(); s.setIdChanged(false); return cookie; } } return null; }
@Override public HttpCookie access(HttpSession session,boolean secure) { long now=System.currentTimeMillis(); AbstractSession s = ((SessionIf)session).getSession(); if (s.access(now)) { // Do we need to refresh the cookie? if (isUsingCookies() && (s.isIdChanged() || (getSessionCookieConfig().getMaxAge()>0 && getRefreshCookieAge()>0 && ((now-s.getCookieSetTime())/1000>getRefreshCookieAge())) ) ) { HttpCookie cookie=getSessionCookie(session,_context==null?"/":(_context.getContextPath()),secure); s.cookieSet(); s.setIdChanged(false); return cookie; } } return null; }