类 Session.Cookie

    • 构造器详细资料

    • 方法详细资料

      • getName

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

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

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

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

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

        public Boolean getSecure()
        Return whether to always mark the session cookie as secure.
        返回:
        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.
        返回:
        the maximum age of the session cookie