Example #1
0
 public static void CheckMainPageReferer()
 {
     if (HttpContext.Current.Request.Url.Segments[1] != "MainPage.aspx" && HttpContext.Current.Request.UrlReferrer == null)
     {
         BUser.ClearUserCach();
         FormsAuthentication.SignOut();
         FormsAuthentication.RedirectToLoginPage();
     }
 }
Example #2
0
 protected void imgbtnLogOut_onClick(object sender, ImageClickEventArgs e)
 {
     //Application.Lock();
     //Application["UserOnlineCount"] = Convert.ToInt32(Application["UserOnlineCount"]) - 1;
     //Application.UnLock();
     BUser.ClearUserCach();
     FormsAuthentication.SignOut();
     FormsAuthentication.RedirectToLoginPage();
 }
Example #3
0
 protected void Login_Click(object sender, EventArgs e)
 {
     BUser.ClearUserCach();
     Session.Clear();
 }
Example #4
0
 protected void imgbtnLogOut_onClick(object sender, ImageClickEventArgs e)
 {
     BUser.ClearUserCach();
     FormsAuthentication.SignOut();
     FormsAuthentication.RedirectToLoginPage();
 }
Example #5
0
 void tlbLogout_ItemCommand(object sender, ToolBarItemEventArgs e)
 {
     BUser.ClearUserCach();
     FormsAuthentication.SignOut();
     FormsAuthentication.RedirectToLoginPage();
 }
Example #6
0
 private static void LogOut()
 {
     BUser.ClearUserCach();
     FormsAuthentication.SignOut();
     FormsAuthentication.RedirectToLoginPage();
 }