CookieManager1.1.1

back

Commands

Events

This service can enumerate and remove cookies for a certain domain.

It can currently not add cookies, but this can be achieved through ECMAScript (document.cookie).

Changelog: 1.0 - First release 1.0.1 - Fixed a bug in RemoveCookie where it would remove all cookies, not just in the specified domain. 1.1 - Added AddCookie 1.1.1 - Fixed a bug in GetCookie where the filtering failed.

AddCookie

Add a new cookie, will overwrite exsisting with same domain/name

@param domain Name of domain, e.g. "opera.com" @param name Name of cookie to add @param path (optional, defaults to "/") @param value (optional) Cookie value @param expires (optional) This is seconds since epoch @param isSecure (optional defaults to false) Only use this cookie on secure connections @param isHTTPOnly (optional defaults to false) Only use this cookie for HTTP

command AddCookie(AddCookieArg)
{
}
returns (Default)
{
}
= 5;

GetCookie

Retrieve a list of cookies for a given domain.

@param domain Name of domain to look for, e.g. "opera.com" @param path Limit cookie list to specified path or subpath.

command GetCookie(GetCookieArg)
{
}
returns (CookieList)
{
}
= 1;

GetCookieSettings

Get global settings regarding the allowed number of cookies, and the max allowed length a cookie.

command GetCookieSettings(Default)
{
}
returns (CookieSettings)
{
}
= 4;

RemoveAllCookies

Removes all cookies.

command RemoveAllCookies(Default)
{
}
returns (Default)
{
}
= 3;

RemoveCookie

Removes selected cookies or all cookies in a domain.

@param domain Name of domain to remove cookies from, e.g. "opera.com" @param path If specified only removes cookies from specified path or subpath. @param name Name of cookie to remove, if unspecified removes all cookies matching domain/path.

command RemoveCookie(RemoveCookieArg)
{
}
returns (Default)
{
}
= 2;