By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,717 Members | 2,069 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,717 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.