Interface CookieJar


public interface CookieJar
Provides access to Burp's Cookie Jar functionality.
  • Method Details

    • setCookie

      void setCookie(String name, String value, String path, String domain, ZonedDateTime expiration)
      Add a new HTTP cookie to the Cookie Jar.
      Parameters:
      name - The name of the cookie.
      value - The value of the cookie.
      path - The path for which the cookie is in scope or null if none is set.
      domain - The domain for which the cookie is in scope.
      expiration - The expiration time for the cookie, or null if none is set (i.e., for non-persistent session cookies).
    • cookies

      List<Cookie> cookies()
      Returns:
      A list of stored cookies.