HttpRequest.IsAuthenticated Property
.NET Framework 3.0
Gets a value indicating whether the request has been authenticated.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
'Declaration Public ReadOnly Property IsAuthenticated As Boolean 'Usage Dim instance As HttpRequest Dim value As Boolean value = instance.IsAuthenticated
/** @property */ public boolean get_IsAuthenticated ()
public function get IsAuthenticated () : boolean
Not applicable.
Property Value
true if the request is authenticated; otherwise, false.The following code example uses the IsAuthenticated property to determine whether the current request has been authenticated. If it has not been authenticated, the request is redirected to another page where users can enter their credentials into the Web application. This is a common technique used in the default page for an application.
Community Additions
ADD
Show: