A cookie. These are created when a request calls set-cookie, or when document.cookie is used.
Public Member Functions | |
| Cookie (string cookieString) | |
| Loads a cookie from the given cookie string. More... | |
| bool | SafeToSet (Location forDomain) |
| Gets or creates a jar for this cookie. Returns null if a page attempted to create a cookie for a domain it doesn't own. More... | |
| void | SafeSet (Location url) |
| Sets this cookie. More... | |
| string | ToShortString () |
| Gets it as just name/value. More... | |
| override string | ToString () |
| The contents of the cookie. More... | |
Public Attributes | |
| const string | DateTimePattern ="ddd, dd MMM yyyy HH':'mm':'ss 'GMT'" |
| The pattern used when toString()'ing a date. More... | |
| string | Name |
| Cookie name. More... | |
| string | Value |
| Cookie contents. More... | |
| DateTime | Expiry |
| Expiry date. More... | |
| string | Domain |
| The full domain the cookie is available for. More... | |
| bool | HttpOnly |
| True if this cookie isn't available in JS. More... | |
| bool | Secure |
| Secure cookie (HTTPS only). More... | |
| string | Path |
| Specific path. More... | |
| string | Version |
| Cookie version. More... | |
Properties | |
| bool | SessionOnly [get] |
| Single session cookie if it's expiry isn't set. More... | |
| bool | Expired [get] |
| Has this cookie expired? More... | |
Static Private Attributes | |
| static char[] | Delimiter =new char[]{'='} |
| The equals character used for splitting cookies up. More... | |
|
inline |
Loads a cookie from the given cookie string.
|
inline |
Sets this cookie.
|
inline |
Gets or creates a jar for this cookie. Returns null if a page attempted to create a cookie for a domain it doesn't own.
|
inline |
Gets it as just name/value.
|
inline |
The contents of the cookie.
| const string PowerUI.Http.Cookie.DateTimePattern ="ddd, dd MMM yyyy HH':'mm':'ss 'GMT'" |
The pattern used when toString()'ing a date.
|
staticprivate |
The equals character used for splitting cookies up.
| string PowerUI.Http.Cookie.Domain |
The full domain the cookie is available for.
| DateTime PowerUI.Http.Cookie.Expiry |
Expiry date.
| bool PowerUI.Http.Cookie.HttpOnly |
True if this cookie isn't available in JS.
| string PowerUI.Http.Cookie.Name |
Cookie name.
| string PowerUI.Http.Cookie.Path |
Specific path.
| bool PowerUI.Http.Cookie.Secure |
Secure cookie (HTTPS only).
| string PowerUI.Http.Cookie.Value |
Cookie contents.
| string PowerUI.Http.Cookie.Version |
Cookie version.
|
get |
Has this cookie expired?
|
get |
Single session cookie if it's expiry isn't set.