protected void Session_End(object sender, EventArgs e) { try { UserSessionInformation UserInfo = (UserSessionInformation)Session[SiteContext.USER_SESSION_INFO] ?? new UserSessionInformation(); ReportDAO.UpdateLastPageUserWasOn(AppSettings.AllowPageReportRecording, UserInfo); } catch (Exception ex) { } }
/// <summary> /// Record the users page exit time /// </summary> /// <returns></returns> public ActionResult Exit() { ReportDAO.UpdateLastPageUserWasOn(AppSettings.AllowPageReportRecording, SiteContext.UserSessionInfo); return(Content("")); }