keeping widget session alive

chercm
Mega Sage

Hi 

 

i have a widget but kept getting page expired message , how to keep it alive ?

1 REPLY 1

chercm
Mega Sage

i know that under the widget dependency there is a walkupkeepalive but there does not seems to be working 

 

function($http, $interval) {

/**

* Utility function to keep the page session alive.

*

* @Param {number} interval - Time between each http request.

*/

function keepAlive(interval) {

if (!interval) {

return;

}

$interval(function() {

$http.get('/walk_up_keep_alive').then(function(){});

}, interval);

}

return {

keepAlive: keepAlive

};

}