protected void Page_Load(object sender, EventArgs e) { COMMON.cleanSavedUserSessions(); Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1)); Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetNoStore(); Response.Redirect("Login.aspx", false); //BindLogout(); }
protected void Page_Load(object sender, EventArgs e) { if (Guid.Empty != SavedSession.UserGuid) { if (!IsPostBack) { } } else if (SavedSession.UserGuid == Guid.Empty) { COMMON.cleanSavedUserSessions(); Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1)); Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetNoStore(); Response.Redirect("Login.aspx", false); } }
protected void Page_Load(object sender, EventArgs e) { if (Guid.Empty != SavedSession.UserGuid) { if (!IsPostBack) { setUserDefaults(); } } else { COMMON.cleanSavedUserSessions(); Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1)); Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetNoStore(); Response.Redirect("Login.aspx", false); } // Response.Redirect("Login.aspx",true); // Int64 ID = Convert.ToInt64(Session["RowID"]); }