Forum Moderators: open

Message Too Old, No Replies

Link is still opening the window even after the session timed out!

Want to resolve this issue ASAP!

         

Geetanjali

4:01 am on Mar 10, 2005 (gmt 0)

10+ Year Member



Situation is:
Lets say there is a link "My Messages" on the website which opens up a new independent window. Now, Without doing anything on the site after logging, the session goes out. But the user is not aware of this thing. He clicks on the link "My Messages" and the new window opens with the error message as "session timed out" and after clicking on continue, he reaches to the login page(as the functionality of the application) , this thing is happening in the same child window means a new session has started in the child window which has now no connection with the parent window which is sitting idle.

Now the issue is:
We can not maximize the child window because it was set as such when we clicked on "My Messages". Now i want that if the session has timed out then if we click on the link, then the new window should not get open, rather the session timed out messages should get display in the parent window itself.

CaseyRyan

9:02 pm on Mar 10, 2005 (gmt 0)

10+ Year Member



Hello Geetanjali, welcome to WebmasterWorld

Your best bet would be to:
1. First check to see if the session has expired when they do anything in the popup windo.
2. If it has expired, write out javascript code to the popup window which executes onload. This code would tell the opener window to reload (either calling a javascript function in the opener or issuing a opener.document.location.reload() from the popup.
3. The popup would then close itself (window.close()), and the user would have a login and new session in the main window.

Problems would arise if the user is actually doing something in that window at the time that the session expires. You can always set your session expiration to a longer period of time.

Depending on what server side technology (ASP or PHP) you're using, there should be code on how to check if a session has expired.

-=casey=-