jodd-joy/src/main/java/jodd/joy/auth/UserSession.java
public void start(final HttpServletRequest httpServletRequest, final HttpServletResponse httpServletResponse) {
		final HttpSession httpSession = httpServletRequest.getSession(true);
		httpSession.setAttribute(AUTH_SESSION_NAME, this);

		final Cookie cookie = new Cookie(AUTH_COOKIE_NAME, authTokenValue);
		//cookie.setDomain(SSORealm.SSO_DOMAIN);
		cookie.setMaxAge(cookieMaxAge);
		cookie.setPath("/");
		httpServletResponse.addCookie(cookie);
	}
public void start(final HttpServletRequest httpServletRequest, final HttpServletResponse httpServletResponse) {
		final HttpSession httpSession = httpServletRequest.getSession(true);
		httpSession.setAttribute(AUTH_SESSION_NAME, this);

		final Cookie cookie = new Cookie(AUTH_COOKIE_NAME, authTokenValue);
		//cookie.setDomain(SSORealm.SSO_DOMAIN);
		cookie.setMaxAge(cookieMaxAge);
		cookie.setPath("/");
		httpServletResponse.addCookie(cookie);
	}
public void start ( final HttpServletRequest httpServletRequest , final HttpServletResponse httpServletResponse ) { final HttpSession httpSession = httpServletRequest . getSession ( true ) ; httpSession . setAttribute ( AUTH_SESSION_NAME , this ) ; final Cookie cookie = new Cookie ( AUTH_COOKIE_NAME , authTokenValue ) ; //cookie.setDomain(SSORealm.SSO_DOMAIN); cookie . setMaxAge ( cookieMaxAge ) ; cookie . setPath ( "/" ) ; httpServletResponse . addCookie ( cookie ) ; }
Starts new user session.
Starts new user session .