Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The IWriteCookie interface exposes methods that you can use to alter the values and attributes of the cookies stored in the write-only Response.Cookies Collection collection.
Methods in Vtable Order
The IWriteCookie interface inherits the methods of the standard COM interface IUnknown.
The IWriteCookie interface defines the following methods.
Method |
Description |
---|---|
Retrieves an enumerator for the Cookies collection. |
|
Retrieves a Boolean indicating whether the cookie has keys. |
|
Sets the Domain attribute of the cookie to the specified value. |
|
Sets the Expires attribute of the cookie to the specified value. |
|
Adds an item to the Cookies collection. |
|
Sets the Path attribute of the cookie to the specified value. |
|
Sets the Secure attribute of the cookie to the specified value. |
Note
IWriteCookie and IReadCookie are interfaces for the same object. If you have an IWriteCookie pointer, you can call the IUnknown::QueryInterface method on an IReadCookie pointer.
This interface also supports the IUnknown and IDispatch interface methods. For more information, see \iissamples\sdk\include\asptlb.h, the header file installed with ASP.
Requirements
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