Microsoft KB Archive/278757

= How to Log Off in an HTML Forms Authentication Web Site =

Article ID: 278757

Article Last Modified on 4/12/2001

-

APPLIES TO


 * Microsoft Site Server 3.0 Standard Edition

-



This article was previously published under Q278757



SUMMARY
Although Site Server offers a default method for users to log on to a Web site that is protected by HTML Forms Authentication, it is somewhat unclear how to properly log off of the Web site. For a user to properly log off from the HTML Forms Authentication portion of a Web site, you must remove the FormsAuth cookie from the client browser by using the CancelCookie method of the Membership.VerifUsr object.



MORE INFORMATION
To remove the FormsAuth cookie, add the following code to the Web page. This forces the user to log on again whenever they request a Web page that is protected by HTML Forms Authentication.

<% Set oVUsr = Server.CreateObject (&quot;Membership.VerifUsr.1&quot;) oVUsr.CancelCookie &quot;FormsAuth&quot; %>

Additional query words: VerifUsr CancelCookie FormsAuth Logout Personalization Membership

Keywords: kbhowto KB278757

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.