IWriteCookie::put_Expires

IIS 6.0

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


HRESULT put_Expires(
      DATE dtExpires
);

dtExpires

[in] A date that contains the new expiration value.

This date must be set in order for the cookie to be maintained after the session ends. If this attribute is not set to a date beyond the current date, the cookie will expire when the session ends.

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: