Context.User.Identity.IsAuthenticated : Context « Session Cookie « ASP.Net






Context.User.Identity.IsAuthenticated

<%@ Page Language="vb" %>
<html>
   <head>
      <script runat="server">
  Sub Page_Load()
            Message.Text = "User.Identity.IsAuthenticated?  " _
         & Context.User.Identity.IsAuthenticated & "<br/>"
      If Context.User.Identity.IsAuthenticated then  
          Message.Text = Message.Text & "User.Identity.Name?  " _
         & Context.User.Identity.Name & "<br/>"
      end if
  End Sub
      </script>
   </head>
<body>
   <asp:label id="Message" runat="server"/>
</body>
</html>

           
       








Related examples in the same category

1.Context.Items
2. Context.Items.Contains
3.Context.Timestamp
4.Context.SkipAuthorization
5.Context.IsDebuggingEnabled
6.Context.IsCustomErrorEnabled
7.Context.AddError
8.Context.Error
9.Context.Trace.IsEnabled
10.Context.GetConfig