488489490491492493494495496497498
if (session == null) { } else if (session.isValid()) { if (session != null) setHasCookie(); if (! session.getId().equals(id) && manager.enableSessionCookies()) { HttpServletResponse response = getResponse(); if (response instanceof CauchoResponse) ((CauchoResponse) getResponse()).setSessionId(session.getId()); }
519520521522523524525526527528529
setHasCookie(); if (session.getId().equals(id)) return session; if (manager.enableSessionCookies()) { HttpServletResponse response = getResponse(); if (response instanceof CauchoResponse) ((CauchoResponse) getResponse()).setSessionId(session.getId()); }
12581259126012611262126312641265126612671268
@Override public String getRequestedSessionId() { SessionManager manager = getSessionManager(); if (manager != null && manager.enableSessionCookies()) { setVaryCookie(getSessionCookie(manager)); String id = findSessionIdFromCookie(); if (id != null) {
12751276127712781279128012811282128312841285
String id = findSessionIdFromUrl(); if (id != null) { return id; } if (manager != null && manager.enableSessionCookies()) return null; else return _request.findSessionIdFromConnection(); }
12901291129212931294129512961297129812991300
*/ protected String findSessionIdFromCookie() { SessionManager manager = getSessionManager(); if (manager == null || ! manager.enableSessionCookies()) return null; Cookie cookie = getCookie(getSessionCookie(manager)); if (cookie != null) {
256257258259260261262263264265266
= manager.createSession(create, this, id, now, isSessionIdFromCookie()); if (session != null && (id == null || ! session.getId().equals(id)) && manager.enableSessionCookies()) { setSessionId(session.getId()); } // server/0123 vs TCK /*
12241225122612271228122912301231123212331234