[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Show login page when session expired

  • Thread starter Thread starter Radoslav Kirilov
  • Start date Start date
Status
Not open for further replies.
R

Radoslav Kirilov

Guest
Hi Into the current version of the application we do not have such functionality implemented built-in. I will put this requirement in our back log and we will prioritize it for the next major version of the product. At meantime, you can try using following code as workaround: app/script/extensions/index.js // Import your custom modules here: export default angular.module('app.extensions.module', [ // Put your custom modules here: ]).run(['$rootScope', 'providerService', '$state', function($rootScope, providerService, $state) { var lastDigestRun = new Date(); $rootScope.$watch(function detectIdle() { var now = new Date(); if (now - lastDigestRun > 20*1000*60) { providerService.unRegisterProviders() .then(function() { $rootScope.hasAuthProviders = false; $state.go('login'); }) .catch(function() { //Error handling $state.go('default.module.application.home'); }); } lastDigestRun = now; })}]) .name; Best, Rado

Continue reading...
 
Status
Not open for further replies.
Back
Top