Valadoc | Vala | Tutorial | API-References | Markup

Cookie


Object Hierarchy:

Object hierarchy for Cookie

Description:

public class Cookie

An HTTP cookie.

name and value will be set for all cookies. If the cookie is generated from a string that appears to have no name, then name will be the empty string.

domain and path give the host or domain, and path within that host/domain, to restrict this cookie to. If domain starts with ".", that indicates a domain (which matches the string after the ".", or any hostname that has domain as a suffix). Otherwise, it is a hostname and must match exactly.

expires will be non-%NULL if the cookie uses either the original "expires" attribute, or the "max-age" attribute specified in RFC 2109. If expires is null, it indicates that neither "expires" nor "max-age" was specified, and the cookie expires at the end of the session.

If http_only is set, the cookie should not be exposed to untrusted code (eg, javascript), so as to minimize the danger posed by cross-site scripting attacks.


Namespace: Soup
Package: libsoup-2.4

Content:

Static methods:

Creation methods:

Methods:

Fields: