protected override void OnInit(EventArgs e) { base.OnInit(e); object currentUser = Session["CloneDeployUser"]; if (currentUser == null) { HttpContext.Current.Session.Abandon(); FormsAuthentication.SignOut(); Response.Redirect("~/views/login/login.aspx?session=expired", true); } CloneDeployCurrentUser = (Models.CloneDeployUser)currentUser; }
protected override void OnInit(EventArgs e) { base.OnInit(e); object currentUser = Session["CloneDeployUser"]; if (currentUser == null ) { HttpContext.Current.Session.Abandon(); FormsAuthentication.SignOut(); Response.Redirect("~/views/login/login.aspx?session=expired", true); } CloneDeployCurrentUser = (Models.CloneDeployUser)currentUser; }