protected void Session_Start(object sender, EventArgs e) { NotificationComponent NC = new NotificationComponent(); var currentTime = DateTime.Now; HttpContext.Current.Session["LastUpdated"] = currentTime; NC.RegisterNotification(currentTime); }
protected void Session_Start(object sender, EventArgs e) { NotificationComponent notiCom = new NotificationComponent(); var currentDateTime = DateTime.Now; HttpContext.Current.Session["LastTimeNotified"] = currentDateTime; notiCom.RegisterNotification(); }