Signing Off

Using Forms authentication, you can enable the user to sign off from the application by invoking the FormsAuthentication.SignOut method as shown here:

FormsAuthentication.SignOut;
Server.Transfer.("LoginPage.aspx");

Get Delphi for .NET Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.