Cookie.new(options_hash)
Create a new CGI::Cookie object.
- name_string
-
The name of the cookie; in this form, there is no domain or expiration. The path is gleaned from the
SCRIPT_NAME
environment variable, and secure is false. -
*value
-
value or list of values of the cookie
-
options_hash
-
A Hash of options to initialize this Cookie. Possible options are:
- name
-
the name of the cookie. Required.
- value
-
the cookie's value or list of values.
- path
-
the path for which this cookie applies. Defaults to the the value of the
SCRIPT_NAME
environment variable. - domain
-
the domain for which this cookie applies.
- expires
-
the time at which this cookie expires, as a
Time
object. - secure
-
whether this cookie is a secure cookie or not (default to false). Secure cookies are only transmitted to HTTPS servers.
These keywords correspond to attributes of the cookie object.
Please login to continue.