467,080 Members | 921 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,080 developers. It's quick & easy.

Close windows on session timeout. Can I find all the open windows

RJN

Hi

Sorry for posting again.
I open a few pop-up windows from a main window. If session time out
occurs in either the main window or the pop-up windows ,I redirect the
user to login screen. Currently what is happening is , suppose session
times out in a pop-up window, then the login screen opens in the same
window. I want to close all the Pop-up window, main window and redirect
the user to the login screen. If I can redirect to the main window is
also ok, but all the pop-up windows must be closed. Is there a clean way
of doing this. Similar situation arises in case of an error where I
redirect to an error page. Is there a way to find all the windows that
have been opened from this application

Regards

RJN
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
  • viewed: 3286
Share:
1 Reply
Hi,

In order for this to work, your main window would need to be open at all
times. You would also need to add a frameset to your main window and create
a 1 pixel frame or something that would never change. In this frame you
could create an array or window objects. Every time you launch a popup from
your main window add a reference to this popup to the array. Whenever you
need to close all the windows, loop through this array, test if the window
is still there (not null or undefined) and if it is then close it. You
could also run a little script on a timer in the hidden frame that
occasionally loops through the array and discards windows that no longer
open. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"RJN" <rj*@yahoo.com> wrote in message
news:uK**************@TK2MSFTNGP09.phx.gbl...

Hi

Sorry for posting again.
I open a few pop-up windows from a main window. If session time out
occurs in either the main window or the pop-up windows ,I redirect the
user to login screen. Currently what is happening is , suppose session
times out in a pop-up window, then the login screen opens in the same
window. I want to close all the Pop-up window, main window and redirect
the user to the login screen. If I can redirect to the main window is
also ok, but all the pop-up windows must be closed. Is there a clean way
of doing this. Similar situation arises in case of an error where I
redirect to an error page. Is there a way to find all the windows that
have been opened from this application

Regards

RJN
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Will Gillen | last post: by
4 posts views Thread by =?Utf-8?B?SmVycnkgQw==?= | last post: by
5 posts views Thread by Pavils Jurjans | last post: by
1 post views Thread by richakarve@gmail.com | last post: by
2 posts views Thread by =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.