コード例 #1
0
        private void createLoginLog()
        {
            SecLoginLog loginlog = new SecLoginLog();

            loginlog.UserId = (int)Session["UserId"];

            SecLoginLogManager.Update(loginlog);
        }
コード例 #2
0
        private void createLoginLog()
        {
            SecLoginLog loginlog = new SecLoginLog();

            /*changed after DB changes*/
            //loginlog.userid = (int)Session["UserId"];
            loginlog.UserId = (int)Session["UserId"];

            SecLoginLogManager.Update(loginlog);
        }
コード例 #3
0
ファイル: Login.aspx.cs プロジェクト: Antoniotoress1992/asp
        private void createLoginLog(int UserId, bool sucess)
        {
            SecLoginLog loginlog = new SecLoginLog();

            loginlog.UserId     = UserId;
            loginlog.LoginId    = txtUserName.Text.Trim();
            loginlog.LoginTime  = DateTime.Now;
            loginlog.LogoutTime = DateTime.Now;
            if (sucess == true)
            {
                loginlog.Sucess = true;
            }
            else
            {
                loginlog.Sucess = false;
            }
            loginlog.CreatedMachineIP = Request.ServerVariables["remote_addr"].ToString();
            SecLoginLogManager.Save(loginlog);
        }