Esempio n. 1
0
        protected override void Initialize(RequestContext requestContext)
        {
            if (FormsService == null) { FormsService = new FormsAuthenticationService(); }
            if (MembershipService == null) { MembershipService = new AccountMembershipService(); }

            base.Initialize(requestContext);
        }
Esempio n. 2
0
 public void SignOut() {
   var authService = new FormsAuthenticationService();
   authService.SignOut();
   System.Web.HttpContext.Current.Session.RemoveAll();
 }
Esempio n. 3
0
 public void SignIn( string userName, bool createPersistentCookie ) {
   var authService = new FormsAuthenticationService();
   authService.SignIn( userName, false );
 }