Cookie (Class)

Represents a cookie exchanged by the servlet and the web browser.

Properties

name

Cookie name.

comment

Comment describing the function of the cookie, null if undefined.

domain

Cookie's domain name.

maxAge

Cookie life-span in seconds.

path

Path based on which the web browser forwards the cookie.

secure

true if the cookie can only be forwarded via a secure protocol.

value

Cookie value.

version

Protocol version which the cookie is compatible with.

Features

Available in:

  • JSSP
  • WebApp