Beispiel #1
0
        private void AfterNHInit()
        {
            //所有登录标志清除
            var sql = "update GN_User set LoginMark=null";

            UtilQuery.StatelessExecuteSql(sql);
        }
Beispiel #2
0
        protected void Session_End()
        {
            var loginInfo = ((LoginInfoViewModel)Session["LoginInfo"]);

            if (loginInfo == null)
            {
                return;
            }
            if (loginInfo.LoginUser == null)
            {
                Util.AddLog("Session End:loginInfo.LoginUser == null");
                return;
            }
            String sql = "update GN_User set LoginMark=null where ID=" + loginInfo.LoginUser.Id;

            UtilQuery.StatelessExecuteSql(sql);
        }