The IRequest::get_Cookies method retrieves the Request.Cookies Collection collection of the Request Object object.

HRESULT get_Cookies(
      IRequestDictionary** ppDictReturn


  • ppDictReturn
    [retval] [out] Points to an IRequestDictionary interface pointer that receives the Cookies collection.


You can iterate through the Cookies collection with the get__NewEnum method exposed by the IRequestDictionary interface. You can also retrieve a specific Cookie value with the get_Item method.


Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also