Detailed Description

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...
 

Constructor & Destructor Documentation

PowerUI.Http.Cookie.Cookie ( string  cookieString)
inline

Loads a cookie from the given cookie string.

Member Function Documentation

void PowerUI.Http.Cookie.SafeSet ( Location  url)
inline

Sets this cookie.

bool PowerUI.Http.Cookie.SafeToSet ( Location  forDomain)
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.

string PowerUI.Http.Cookie.ToShortString ( )
inline

Gets it as just name/value.

override string PowerUI.Http.Cookie.ToString ( )
inline

The contents of the cookie.

Member Data Documentation

const string PowerUI.Http.Cookie.DateTimePattern ="ddd, dd MMM yyyy HH':'mm':'ss 'GMT'"

The pattern used when toString()'ing a date.

char [] PowerUI.Http.Cookie.Delimiter =new char[]{'='}
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.

Property Documentation

bool PowerUI.Http.Cookie.Expired
get

Has this cookie expired?

bool PowerUI.Http.Cookie.SessionOnly
get

Single session cookie if it's expiry isn't set.