TOC PREV NEXT INDEX

Embedding Gecko API


nsICookieManager


This interface is used to access or remove cookies in the cookie list. It is scriptable.

Methods
removeAll

Removes all cookies from the cookie list.

Syntax:

void nsICookieManager::removeAll() 

Parameters:

None.

nsresult:

NS_OK if successful.
remove

Removes an individual cookie from the cookie list.

Syntax:

void nsICookieManager::remove(in AUTF8String aDomain, 
	in ACString aName, in AUTF8String aPath, 
	in boolean aBlocked) 

Parameters:

aDomain: The host or domain for which the cookie was set.
aName: The name specified in the cookie.
aBlocked: TRUE if cookies from this host should be permanently blocked, FALSE otherwise.

nsresult:

NS_OK if successful.
Attributes
readonly attribute nsISimpleEnumerator nsICookieManager::enumerator

Gets an enumerator that enumerates through each cookie in the cookie list. The objects enumerated over are of type nsICookie.


Written by:Ellen Evans | Comments, questions, complaints? Bug 143387
TOC PREV NEXT INDEX