jodd-servlet/src/main/java/jodd/servlet/filter/RemoveSessionFromUrlFilter.java
protected boolean isRequestedSessionIdFromURL(final HttpServletRequest servletRequest) {
		if (servletRequest.isRequestedSessionIdFromURL()) {
			return true;
		}

		HttpSession session = servletRequest.getSession(false);
		if (session != null) {
			String sessionId = session.getId();
			StringBuffer requestUri = servletRequest.getRequestURL();

			return requestUri.indexOf(sessionId) != -1;
		}

		return false;
	}
protected boolean isRequestedSessionIdFromURL(final HttpServletRequest servletRequest) {
		if (servletRequest.isRequestedSessionIdFromURL()) {
			return true;
		}

		HttpSession session = servletRequest.getSession(false);
		if (session != null) {
			String sessionId = session.getId();
			StringBuffer requestUri = servletRequest.getRequestURL();

			return requestUri.indexOf(sessionId) != -1;
		}

		return false;
	}
protected boolean isRequestedSessionIdFromURL ( final HttpServletRequest servletRequest ) { if ( servletRequest . isRequestedSessionIdFromURL ( ) ) { return true ; } HttpSession session = servletRequest . getSession ( false ) ; if ( session != null ) { String sessionId = session . getId ( ) ; StringBuffer requestUri = servletRequest . getRequestURL ( ) ; return requestUri . indexOf ( sessionId ) != - 1 ; } return false ; }
Detects if session ID exist in the URL. It works more reliable
than <code>servletRequest.isRequestedSessionIdFromURL()</code>.
Detects if session ID exist in the URL . It works more reliable than <code > servletRequest . isRequestedSessionIdFromURL () < / code > .