Skip to Content
author's profile photo Former Member
Former Member

Handling Session Timeout


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?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 08, 2008 at 07:58 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.