This method adds a specified cookie to the write-only Cookie collection.
HRESULT put_Item(
VARIANT key, |
//VARIANT that contains the name of the cookie |
BSTR bstrValue |
//binary string that contains the cookie value |
); |
If key is an optional VARIANT parameter (V_VT(&key) == VT_ERROR && V_ERROR(&key) == DISP_E_PARAMNOTFOUND), then the cookie is treated as a simple cookie and bstrValue is the cookie’s value. Otherwise the cookie is treated as a dictionary cookie and bstrValue is the value for the cookie’s key.