We have RIA which checks a project version by calling MVC controller. If version when project was started and version on the server is different then user get a message to update browser in order to get the last updated version.
Javascript:
function versionControl() {
$.ajax({
url: "Home/VersionControl",
success: function (result) {
if (result != App.version) {
Notification.Show("version-update");
}
}
});
setTimeout(versionControl, 300000);
}
Controller:
public string VersionControl()
{
return ConfigurationManager.AppSettings["ScriptVersion"];
}
Problem is if I have session 8 hours and function versionControl() is called the session will never end.
Question: How to check version without extending session time?