예제 #1
0
        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();
        }
예제 #2
0
 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);
     }
 }
예제 #3
0
 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"]);
 }