Cookie
Object Hierarchy:
Description:
public class Cookie :
Object
Represents an HTTP cookie.
Content:
Properties:
- public string name { set; get; }
Name of the cookie.
- public string value { set; get; }
Content of the cookie.
- public string? expires { set; get; }
Expiration date as a HTTP formatted date, but normally will be set
automatically with max_age.
- public int max_age { set; get; }
Expiration as a relative value in seconds. This can be set at the same
time as expires, and browsers will ignore expires if they support max-age.
- public string domain { set; get; }
Partial or full domain name for which this cookie is valid.
- public string path { set; get; }
Partial or full path for which this cookie is valid. Defaults to "/".
- public bool secure { set; get; }
True if this cookie is only valid when accessed over HTTPS.
- public bool http_only { set; get; }
True if this cookie is only set for HTTP requests, and not to be read
by on-page JavaScript.
Creation methods:
Methods:
- public bool is_valid ()
Return true if this instance has all the required fields for rendering
-- name, value, and expires or max_age.
- public string? render ()
Render this instance per RFC 2965 and/or 6265.
Inherited Members:
All known members inherited from class GLib.Object