nsICookieManager
From MDC
The nsICookieManager interface is an optional interface for accessing or removing the cookies that are in the cookie list.
Contents |
nsICookieManager is defined in netwerk/cookie/public/nsICookieManager.idl. It is scriptable and
has been frozen since Mozilla 1.9.
Inherits from: nsISupports
[edit] Method overview
void removaAll();
|
void remove(in AUTF8String aDomain, in ACString aName, in AUTF8String aPath, in boolean aBlocked);
|
[edit] Attributes
| 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. |
[edit] Methods
[edit] removeAll()
This method is called to remove all cookies from the cookie list.
void removeAll();
[edit] Parameters
None.
[edit] remove()
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 );
[edit] Parameters
- aDomain
- The host or domain for which the cookie was set.
- aName
- The name specified in the cookie.
- aPath
- The path within the domain for which the cookie is valid.
- aBlocked
- Indicates if cookies from this host should be permanently blocked.