Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (PEContext.Current.User.Identity.IsAuthenticated)
     {
         UserInfo usersByUserName = Users.GetUsersByUserName(PEContext.Current.User.UserName);
         if (ApiData.IsAPiEnable())
         {
             ApiFunction.LogOff(usersByUserName.UserName);
         }
         FormsAuthentication.SignOut();
     }
     base.Response.Write("<script language=\"JavaScript\">window.location='../Default.aspx';</script>");
 }