Jaxer.Util.Cookie : Object
Return to: Jaxer Framework index

Namespace object holding functions and members for working with client (browser) cookies on the server side.

Platform Support

Jaxer Server FrameworkJaxer Client Framework
1.01.0

Functions

MethodActionJaxer Server FrameworkJaxer Client Framework
static get(String name) : String
Get a cookie key value
Show Details1.01.0

Parameters
StringnameThe name of the cookie to retrieve

Returns
StringReturns the value of the specified cookie or null if the value does not exist.

static getAll() : Object
Get an object containing all cookie keys and values from the current request. Each cookie name will become a property on the object and each cookie value will become that property's value.
Show Details1.01.0

Returns
ObjectThe resulting object of all cookie key/value pairs

static parseSetCookieHeaders(Array setCookieStrings) : Array
Parses a given array of an HTTP response's "Set-Cookie" header strings to extract the cookie fields
Show Details1.01.0

Parameters
ArraysetCookieStringsAn array of the (string) values of the HTTP response's Set-Cookie headers

Returns
ArrayAn array of objects, one per Set-Cookie header, with properties corresponding to the name, value, expires, path, and domain values in the header

static set(String name, String value) : void
Set a cookie name/value pair
Show Details1.01.0

Parameters
StringnameThe name of the cookie to set
StringvalueThe value of the cookie

aptana_docs