Class LoginUtils

java.lang.Object
org.exoplatform.web.login.LoginUtils

public class LoginUtils extends Object
  • Field Details

  • Method Details

    • getRememberMeTokenCookie

      public static String getRememberMeTokenCookie(jakarta.servlet.http.HttpServletRequest req)
      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 request
      response - the response carrying the deletion