protected override void Initialize(RequestContext requestContext) { if (FormsService == null) { FormsService = new FormsAuthenticationService(); } if (MembershipService == null) { MembershipService = new AccountMembershipService(); } base.Initialize(requestContext); }
public void SignOut() { var authService = new FormsAuthenticationService(); authService.SignOut(); System.Web.HttpContext.Current.Session.RemoveAll(); }
public void SignIn( string userName, bool createPersistentCookie ) { var authService = new FormsAuthenticationService(); authService.SignIn( userName, false ); }