Webcognoscere

I'm putting this here on my blog so that I can remember it as I tend to forget it quite easily. This is how you can check if the user on your site has been authenticated:

<%
if (HttpContext.Current.User.Identity.IsAuthenticated)
{
%>
PUT STUFF HERE THAT ONLY AUTHENTICATED USERS CAN SEE
<%
}
%>

Tags:

Global ASP.NET Hosting Leader - Click Here

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Global ASP.NET Hosting Leader - Click Here