cancel
Showing results for 
Search instead for 
Did you mean: 

Handling Session Timeout

Former Member
0 Kudos

Hello,

I am trying to add logic to some IRPT pages to handle session timeouts.

I am working with a multi-page app. The first page (call it A) sets several session attributes using an applet like this:

document.cmdApp.setPropertyValue(name, value);

There is a button on page A to navigate to page B. Page B retrieves the session variables using an applet like this:

value = document.cmdApp.getPropertyValue("name");

Here is how I recreate the problem:

1) go to page A and let it set the session attributes

2) wait until session is timed out (temporarily set to 1 minute)

3) click on button which navigates to page B

On page B I detect that the session attributes are not available using:

user= document.cmdApp.getPropertyValue("IllumLoginName");

and then I redirect the user back to page A using:

window.location.href = "/Illuminator/x/y/z/A.irpt";

I expected this to force a login (since the session timed out) but, surprisingly, it does not force a login and back on page A when I do the same logic:

user= document.cmdApp.getPropertyValue("IllumLoginName");

I get the user id. If the session timed out, how can page A retrieve the IllumLoginName? Is it somehow cached in the applet that page A has loaded? How can I work around this to force a login?

Thanks,

Mike

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Try the META tags if you haven't already.

META http-equiv="Expires" content="0"

META http-equiv="Cache-Control" content="no-cache"

META http-equiv="Pragma" content="no-cache"

though I doubt this'll help.

Internally I think xMII handles sessions in the Java Server Pages, I am not sure how we can replicate the same on the web content we develop.