protected override void OnLoad(EventArgs e) { base.OnLoad(e); SecurityData.AuthCookieTime(); pph.AssignControls(); }
protected bool DoAuth() { if (!String.IsNullOrEmpty(loginTemplate.UserName) && !String.IsNullOrEmpty(loginTemplate.Password)) { if (FormsAuthentication.Authenticate(loginTemplate.UserName, loginTemplate.Password)) { FormsAuthentication.SetAuthCookie(loginTemplate.UserName, true, "/"); SecurityData.AuthCookieTime(); return(true); } } return(false); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); SecurityData.AuthCookieTime(); }