473,396 Members | 2,129 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,396 software developers and data experts.

Close popup window on session expire

Hi

Popup window is opened and after some time session has expired. After
session expire, if the user tries to make any actions on the popup page
the user is redirected to login.jsp page.

What I want is when the user tries to make any actions on the expired
popup I want the popup window to be closed and parent window to be
refreshed with the login.jsp page. Basically I want identify the popup
window.

I did the following with some assumptions and it works on firefox but
not on IE.
Assumption: Popup window will not have address bar visible

added the function in onload of login.jsp

function onLoadLoginPage(){
if(window.locationbar.visible==false){
opener.location.href='login.jsp';
this.close();
}
}

any suggestions or solutions will be a great help

Thanks
venkat

Aug 3 '06 #1
1 12605
gv********@gmail.com wrote:
Hi

Popup window is opened and after some time session has expired. After
session expire, if the user tries to make any actions on the popup page
the user is redirected to login.jsp page.

What I want is when the user tries to make any actions on the expired
popup I want the popup window to be closed and parent window to be
refreshed with the login.jsp page. Basically I want identify the popup
window.

I did the following with some assumptions and it works on firefox but
not on IE.
Assumption: Popup window will not have address bar visible

added the function in onload of login.jsp

function onLoadLoginPage(){
if(window.locationbar.visible==false){
opener.location.href='login.jsp';
this.close();
}
}

any suggestions or solutions will be a great help
My suggestion is don't try to control more than the frame the user
gives you. I hate pop-ups, even those pages I ask for should open in a
new tab rather than a new frame, and only when I ask them to. By
default the page I'm on should be replaced.

I suggest you make your own pop-up windows that exist within your given
browser frame, using html and javascript. They could contain an iframe
if they need to be a different document.

Here is a free examples of how to do it (firefox and ie):
http://darwinist.googlepages.com/htmldesktop.html

hth
Thanks
venkat
Aug 4 '06 #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: GrantS | last post by:
I am having a problem closing a popup window opened modally. When I try to close the window (when the user hits save button and the data has been processed), the Popup window opens as a full screen...
9
by: Jimmy Junatas | last post by:
When we open a window (using client-side jscript ie. window.open("/Site/Popup.aspx?...",...)) from Page1.aspx, the called page Popup.aspx does not have access to the Session variables present in...
2
by: Joe Molloy | last post by:
Hi, This isn't a mission critical question but I thought I'dl throw it out there for your feedback as it's a bit curious. I have developed a shopping cart for an application I'm working on...
1
by: RJN | last post by:
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....
0
by: aiasso | last post by:
Hi All, Need big time help with this one. I'm using Forms Authentication with an ASP.NET (VB.NET) web app, and everything is fine until the client opens a popup window using javascript on the...
2
by: VMI | last post by:
I have a LinkButton_search on my Page1.aspx that opens up a popup page called popup.aspx. I do this with LinkButton.Attributes.Add() on the Page_Load of Page1.aspx. How can I add server-side code...
9
by: Stan B | last post by:
I create a popup window by calling window.showModalDialog Popup window has Ok button with this code attached: === string Script = "<script language=JavaScript>" + "{" + "window.close();" +...
5
by: avlee | last post by:
Hello I have my web application written in php and javascript. When logged user clicks link logout he will be logout. But when he closes tab or browser he is not logged in. How can i do...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.