I\'m following this ASP.NET MVC tutorial from Microsoft:
My code is slightly different, where I\'m trying to access HttpContext.Request.IsAuthenticated
HttpContext.Request.IsAuthenticated
I would suggest you use:
System.Web.HttpContext.Current.Request
Just remember System.Web.HttpContext.Current is threadstatic, but if you don't use additional thread the solution works.
System.Web.HttpContext.Current