protected void ctrLogin_OnAuthenticate(object sender, AuthenticateEventArgs e)
        {
            string username = ctrLogin.UserName;
            string pass = ctrLogin.Password;

            bool rememberMe = ctrLogin.RememberMeSet;

            ISecurityService securityService = new FormsSecurityService();
            e.Authenticated = securityService.Login(username, pass, rememberMe);
        }
 protected void Application_AuthenticateRequest(object sender, EventArgs e)
 {
     ISecurityService securityService = new FormsSecurityService();
     securityService.RefreshPrincipal();
 }