I created a portlet that uses AJAX every function. That is, the portlet is only rendered once and i didnt utilize processAction or the like.
Is there a way to extend the user's session using built in Liferay function using javascript?
I tried
Liferay.Session.extend();
but it does not seem to work..
I also tried a solution in the ICEfaces forum, which is
if (Liferay.Session._stateCheck) {
window.clearTimeout(Liferay.Session._stateCheck);
Liferay.Session._stateCheck = null;
}
Liferay.Session.init({
autoExtend: false,
timeout: Liferay.Session._timeout,
timeoutWarning: Liferay.Session._warning
});jQuery.ajax({url: Liferay.Session._sessionUrls.extend});
also not working..
I put those blocks of code whenever the user clicks a button
Any tip would greatly help..