AuthenticationService::IsLoggedIn Method ()

 

Determines whether the current user is authenticated.

Namespace:   System.Web.ApplicationServices
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
[OperationContractAttribute]
bool IsLoggedIn()

Return Value

Type: System::Boolean

true if the user has been authenticated; otherwise, false.

The IsLoggedIn method checks whether the current user is authenticated by checking the IsAuthenticated.property.

System_CAPS_noteNote

Do not call the IsLoggedIn method from code that is executing on the Web server. You call the IsLoggedIn method only as part of a WCF service.

.NET Framework
Available since 3.5
Return to top
Show: