setItem

The setItem method of the Cookie class sets the value for a Cookie object that has been implemented as a dictionary.

public void setItem(java.lang.String name, java.lang.String item);

Example

The following code sets the value of an item called Prefix to the value that has been specified in a form.

CookCust.setItem(“Prefix”, form.getString(“Prefix”)); 

© 1999 Microsoft Corporation. All rights reserved. Terms of use.