diff --git a/uw-frame-components/portal/timeout/controllers.js b/uw-frame-components/portal/timeout/controllers.js index 2ffda8492..64fa76fc3 100644 --- a/uw-frame-components/portal/timeout/controllers.js +++ b/uw-frame-components/portal/timeout/controllers.js @@ -3,8 +3,8 @@ define(['angular'], function(angular) { var app = angular.module('portal.timeout.controllers', []); - app.controller('PortalTimeoutController', ['$log', '$location', '$timeout', '$mdDialog', 'MISC_URLS', 'PortalShibbolethService', - function($log, $location, $timeout, $mdDialog, MISC_URLS, PortalShibbolethService){ + app.controller('PortalTimeoutController', ['$sessionStorage', '$log', '$location', '$timeout', '$mdDialog', 'MISC_URLS', 'PortalShibbolethService', + function($sessionStorage, $log, $location, $timeout, $mdDialog, MISC_URLS, PortalShibbolethService){ function init(){ if(PortalShibbolethService.shibServiceActivated()) { //initialize timeout and dialog @@ -14,6 +14,12 @@ define(['angular'], function(angular) { $timeout(triggerDialog, timeoutData.expirationMills); } else { $log.info("Timeout data could not be found"); + if($sessionStorage.portal + && $sessionStorage.portal.username + && $sessionStorage.portal.username !== 'guest'){ + //we know its not a guest session + triggerDialog(); + } } } );