Package org.exoplatform.web.login
Class LoginUtils
java.lang.Object
org.exoplatform.web.login.LoginUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclearRememberMeCookie(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Deletes the remember me cookie from the browser.static StringgetRememberMeTokenCookie(jakarta.servlet.http.HttpServletRequest req) Extract the remember me token from the request or returns null.
-
Field Details
-
COOKIE_NAME
.- See Also:
-
-
Method Details
-
getRememberMeTokenCookie
Extract the remember me token from the request or returns null.- Parameters:
req- the incoming request- Returns:
- the token
-
clearRememberMeCookie
public static void clearRememberMeCookie(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Deletes the remember me cookie from the browser. The cookie is written at path "/" and shared by every webapp, and a browser deletes a cookie only on a Set-Cookie naming the same path, so every deletion goes through here.- Parameters:
request- the incoming requestresponse- the response carrying the deletion
-