I\'ve checked around for a solution but I don\'t seem to get any directed to asp.net mvc. Basically I\'m looking for a solution where a user is notified a minute before the
Something like this:
public class YourController : Controller {
public ActionResult TheAction() {
ViewData["SessionTimeout"] = Request.Session.Timout;
ViewData["SessionWillExpireOn"] = DateTime.Now.AddMinutes(Request.Session.Timeout);
return View(info);
}
}
and this:
Your session will expire: <%= ViewData["SessionWillExpireOn"].ToString() %>
Wrote the View in notepad, so please check the syntax. I also don't remember exactly the DateTime stuff in JS.
Anyway you should see the idea.