
Hi,
I have worked on an enhancement in AX 2012 Enterprise Portal in which user fills a lengthy form. This process of filling the form sometimes takes much time. I have set the session time out to 10 minutes but still users somehow manage to expire the session quite often.
How can we keep the session alive using some dummy AJAX call at the back-end after a repeated interval?
For example in ASP.NET MVC we can use the following code:
function setHeartbeat() {
setTimeout("heartbeat()", 300000); // every 5 min
}
function heartbeat() {
$.get(
"/SessionHeartbeat.ashx",
null,
function(data) {
//$("#heartbeat").show().fadeOut(1000); // just a little "red flash" in the corner :)
setHeartbeat();
},
"json"
);
}
How can we do the same in Enterprise Portal?
Thanks
*This post is locked for comments
I have the same question (0)It think your approach is not correct. There is a session timeout and a request timeout defined in seconds. Which one did you try to increase?
Have a look at the following links:
technet.microsoft.com/.../jj677308.aspx
philippsen.wordpress.com/.../handling-timeout-issues-on-the-enterprise-portal