You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.


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