CancelCookie Method

The method will cancel a previously assigned cookie from the server's response.

IDL Defintion

HRESULT CancelCookie(BSTR bszCookieName);

Parameters

bszCookieName

The name the cookie was set under

Return Values

A standard HRESULT value

Example

<% Set IVerifUsr = Server.CreateObject("Membership.Verifusr.1")
      IVerifUsr.IssueCookie "mycookie", "myvalue"
       … ' for some reason, we need to revoke it
      IVerifUsr.CancelCookie "mycookie"
%>

© 1997-1998 Microsoft Corporation. All rights reserved.