2013-07-12 50 views

回答

0

您可以直接訪問會話,e.g:

@{ 
    var session = base.GetSession<MyAuthUserSession>(); 

    if (session.IsAuthenticated) { 
    //Is Authenticated... 
    } 
    else { 
    //Not Authenticated... 
    } 
}