示例#1
0
 protected void Session_End(Object sender, EventArgs e)
 {
     try
     {
         FI.BusinessObjects.User user = (FI.BusinessObjects.User)Session["User"];
         if (user != null)
         {
             user.Logout();
         }
     }
     catch
     {
         //do nothing
     }
 }
        protected void Session_End(Object sender, EventArgs e)
        {
            try
            {
                FI.BusinessObjects.User user = (FI.BusinessObjects.User)Session["User"];
                if (user != null)
                {
                    user.Logout();
                }

                // write event
                LogWriter.Instance.WriteEventLogEntry(
                    "Session_End [" + (user == null ? null : user.CompanyNameShort + "." + user.Logon + "]"));
            }
            catch
            {
                //do nothing
            }
        }