ClientWindowsAuthenticationMembershipProvider::Logout Method ()
.NET Framework (current version)
Logs out the user.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
For users authenticated through client application services, the static Thread::CurrentPrincipal property is set to a ClientRolePrincipal object that enables access to the configured role service. The Logout method resets the CurrentPrincipal property to a WindowsPrincipal object that contains the current WindowsIdentity. After you call this method, you can no longer retrieve roles for the user through the ClientRoleProvider class. To reauthenticate the current user, call the ClientWindowsAuthenticationMembershipProvider::ValidateUser method.
.NET Framework
Available since 3.5
Available since 3.5
Show: