473,385 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
1 3534
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Pack Fan | last post by:
I've noticed that session variables will persist on Mac IE even after all browser windows have been closed. One must quit the program to clear the session variables. This presents a security risk...
4
by: Pierke | last post by:
Hey guys out there, I really need your help, i am building up a web site, so for security reasons i need to do "some things" before the user log off, and i indeed do it. Now the matter is that...
10
by: Will Gillen | last post by:
I have an ASP.NET application that is using Windows Integrated Authentication (IIS) (as opposed to Forms Authentication). When the user first logs into the application, IIS prompts the user for...
15
by: dee | last post by:
Hi, What is the maximum number of minutes for Session timeout that I can specify in web.config? Thanks. Dee
3
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work...
4
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have seen several articles about this subject but I was wondering with ajax is this easer. The articles mentioned client callback and the onbeforeunload event of the browser. Can AJAX be used for...
5
by: Pavils Jurjans | last post by:
Hello, Is there any way I can intercept the session timeout exception, and 1) Run some code routine, ie log the error and it's context 2) Show nicer output to the user Please do not suggest...
1
by: richakarve | last post by:
hey can anybody please help me. In my application after session time out i've display'd a message and after that i redirect the current window to login page (that is in master page) but i want...
2
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
I see a lot of posts claiming that you can use AJAX or Javascript to run some kind of "heartbeat" " server polling" that tells the server that the page is still open. I need to know how exactly to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.