The nsICookieManager interface is an optional interface for accessing or removing the cookies that are in the cookie list.
This interface is intended to be used as a service. To create an object implementing this interface:
var obj = Components.classes["@mozilla.org/cookiemanager;1"].
getService(Components.interfaces.nsICookieManager);
nsICookieManager is defined in netwerk/cookie/public/nsICookieManager.idl
. It is scriptable
and
has been frozen since Mozilla 1.9
.
Inherits from: nsISupports
void removeAll(); |
void remove(in AUTF8String aDomain, in ACString aName, in AUTF8String aPath, in boolean aBlocked); |
| Attribute | Type | Description |
enumerator | nsISimpleEnumerator | Called to enumerate through each cookie in the cookie list. The objects enumerated over are of type nsICookie. Read only. |
This method is called to remove all cookies from the cookie list.
void removeAll();
None.
This method is called to remove an individual cookie from the cookie list.
void remove( in AUTF8String aDomain, in ACString aName, in AUTF8String aPath, in boolean aBlocked );
aDomain aName aPath aBlocked Page last modified 15:22, 22 May 2009 by Sheppy