$c
= new CGI::Cookie(attribs
)
Constructor. Creates a new cookie. Attributes are:
-domain =
domain_nameOptional, points to domain name or fully qualified hostname to which cookie will be returned. If missing, browser will return cookie only to the server that set it.
-expires =
dateOptional expiration date, in any of the date formats recognized by CGI.pm. If missing, cookie expires at the end of this browser session.
-name =
nameRequired. Scalar value with the cookie name.
-path =
pathOptional, points to a partial URL on the current server; cookies will be
returned to any URL beginning with this path. Defaults to /
.
-secure =
booleanOptional. If true, browser will only return cookie if a cryptographic protocol is in use.
-value =
valueRequired. The value of the cookie; can be a scalar, an array reference, or a hash reference.