Processes HTTP cookies

Attributes
Read

The cookie name

Read & Write

The cookie value

Read & Write

The cookie version

Read & Write

The cookie domain

Read & Write

The cookie path

Read & Write

Is this a secure cookie?

Read & Write

The cookie comment

Read & Write

The maximum age of the cookie

Class Methods

Creates a new cookie with the given name and value

Parses a Cookie field sent from the user-agent. Returns an array of cookies.

Parses the cookie in str

Parses the cookies in str

Instance Methods

Retrieves the expiration time as a Time

Sets the cookie expiration to the time t. The expiration time may be a false value to disable expiration or a Time or HTTP format time string to set the expiration date.

The cookie string suitable for use in an HTTP header