// ************************************** // URL: /Account/LogOn // ************************************** public ActionResult LogOn() { GDS.Communication.GDSLogin.LogOut(); UserEnvironmentVariables uenv = new UserEnvironmentVariables(); uenv.SetLogOut(); return(View()); }
// ************************************** // URL: /Account/LogOff // ************************************** public ActionResult LogOut() { TravelSession obj = (TravelSession)Session["TravelPortalSessionInfo"]; if (obj != null) { MembershipUser usr = Membership.GetUser(obj.Id); LoginHistories lgh = new LoginHistories(); lgh.LogedinDateTime = usr.LastLoginDate; lgh.LogedoutDateTime = DateTime.Now; lgh.UserId = obj.Id; generalProvider.Save_LoginHistory(lgh); } FormsService.SignOut(); GDS.Communication.GDSLogin.LogOut(); UserEnvironmentVariables uenv = new UserEnvironmentVariables(); uenv.SetLogOut(); return(RedirectToAction("logon", "account")); }