IWriteCookie::put_Secure

IIS 6.0

The IWriteCookie::put_Secure method sets the Secure attribute of the write-only Response.Cookies Collection collection to the specified value.

HRESULT put_Secure(
   VARIANT_BOOL fSecure
);

fSecure

[in] A Boolean that contains the new value for the Secure attribute.

You can use this method to specify that a cookie is secure. If you set this value to TRUE, a Secure flag will be added to the Set-Cookie header sent to the client. The Secure flag instructs the client to use only secure means to access the server when sending back the cookie.

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

Show: