IWriteCookie::put_Path

The IWriteCookie::put_Path method sets the Path attribute of the write-only Cookies collection to the specified value.

HRESULT put_Path(

  BSTR bstrPath  // contains the new path

);

 

Parameters
bstrPath
[in] A binary string that contains the new path.
Remarks

You can use this method to specify that the cookie should be sent only to requests on a particular path. If this attribute is not set, the application path is used.

See Also

Cookies