diff options
Diffstat (limited to 'ecomp-sdk/epsdk-fw/src/main')
-rw-r--r-- | ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/listener/PortalTimeoutHandler.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/listener/PortalTimeoutHandler.java b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/listener/PortalTimeoutHandler.java index 1b3c79c0..90c39b52 100644 --- a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/listener/PortalTimeoutHandler.java +++ b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/listener/PortalTimeoutHandler.java @@ -84,7 +84,8 @@ public class PortalTimeoutHandler { String sessionSlot = SessionCommunicationService.getSessionSlotCheckInterval(ecompRestURL, userName, pwd, uebKey); if (sessionSlot == null) - return null; + sessionSlot = "30000"; // default to 5 minutes + return Integer.parseInt(sessionSlot); } @@ -341,18 +342,19 @@ public class PortalTimeoutHandler { Object portalSessionSlotCheckObj = session.getServletContext() .getAttribute(PortalApiConstants.PORTAL_SESSION_SLOT_CHECK); - Integer portalSessionSlotCheckinMilliSec = 5 * 60 * 1000; // (5 minutes) + Integer portalSessionSlotCheckinMilliSec = 0; if (portalSessionSlotCheckObj != null) { portalSessionSlotCheckinMilliSec = Integer.valueOf(portalSessionSlotCheckObj.toString()); } else { portalSessionSlotCheckObj = _sessionComm .fetchSessionSlotCheckInterval(new String[] { ecompRestURL, userName, pwd, uebKey }); - logger.debug("Fetching Portal Session Slot Object: " + portalSessionSlotCheckObj); + logger.debug("Fetched Portal Session Slot Object: " + portalSessionSlotCheckObj); + if (portalSessionSlotCheckObj != null) { portalSessionSlotCheckinMilliSec = Integer.valueOf(portalSessionSlotCheckObj.toString()); session.getServletContext().setAttribute(PortalApiConstants.PORTAL_SESSION_SLOT_CHECK, portalSessionSlotCheckinMilliSec); - } + } } Object previousToLastAccessTimeObj = session.getAttribute(PortalApiConstants.SESSION_PREVIOUS_ACCESS_TIME); |