Name
new
Synopsis
$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 return cookie only 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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access