Class xbCookies — provide access to the document's cookies
extends Class xbObject
class xbCookies : xbObject { // constructor xbCookies(); // methods void setExpires(Date date); void setPath(String path); void setDomain(String domain); void setSecure(); void save(); // properties Object value; }
var cookies = new xbCookies(); if (!cookies.value['ID']) { cookies.value['ID'] = makeId(); cookies.value['VISITS'] = 0; cookies.setExpires( "12/31/2100" ); cookies.setPath('/path'); } cookies.value['VISITS'] = parseInt(cookies.value['VISITS']) + 1; cookies.save();
Constructs an instance of the xbCookies class from the document.cookies string.
readonly Object - hash containing cookie values.
Constructs an instance of the xbCookies class.
Returns. Nothing
Exceptions
None
sets cookie expiration date
Returns. Nothing
Exceptions
None
sets a cookie's path.
Returns. Nothing
Exceptions
None
sets a cookie's domain.
Returns. Nothing
Exceptions
None
sets cookie to secure.
Returns. Nothing
Exceptions
Nothing
saves cookies to user's machine.
Returns. Nothing
Exceptions
None