Class Session.Cookie

    • Constructor Detail

    • Method Detail

      • getName

        public String getName()
        Return the session cookie name.
        Returns:
        the session cookie name
      • getDomain

        public String getDomain()
        Return the domain for the session cookie.
        Returns:
        the session cookie domain
      • getPath

        public String getPath()
        Return the path of the session cookie.
        Returns:
        the session cookie path
      • getComment

        public String getComment()
        Return the comment for the session cookie.
        Returns:
        the session cookie comment
      • getHttpOnly

        public Boolean getHttpOnly()
        Return whether to use "HttpOnly" cookies for session cookies.
        Returns:
        true to use "HttpOnly" cookies for session cookies.
      • getSecure

        public Boolean getSecure()
        Return whether to always mark the session cookie as secure.
        Returns:
        true to mark the session cookie as secure even if the request that initiated the corresponding session is using plain HTTP
      • getMaxAge

        public Duration getMaxAge()
        Return the maximum age of the session cookie.
        Returns:
        the maximum age of the session cookie