DevTreks/Helpers/HtmlMemberExtensions.cs
/// <summary>
/// Determines whether the site recognizes the current user
/// </summary>
Determines whether the site recognizes the current user
Determines whether the site recognizes the current user
public static bool UserIsLoggedIn(HttpContext context)
        {
            bool result = false;
            if (context != null)
            {
                result = context.User.Identity.IsAuthenticated;
            }
            return result;
        }
public static bool UserIsLoggedIn ( HttpContext context ) { bool result = false ; if ( context != null ) { result = context . User . Identity . IsAuthenticated ; } return result ; }
Determines whether the site recognizes the current user
Determines whether the site recognizes the current user
context
HttpContext