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

Redirecting to login page from a popup window.

Hi,
I have a page with a button.On click of this button a popup window
opens.Now if this window is kept open until session timeout then login page
opens in the same window.
Now I want that the popup window should be closed on session timeout
and login page should be opened in its parent window.How can I do that?

Please do tell me if any one knows.

Thanks in advance,
Kalyani
Nov 19 '05 #1
1 3216
hi,
try to call a js function onload of the login page and if its a popup then
redirect the parent to login.aspx

if(window.name == "myWin" && !window.opener.closed )
{
window.opener.location.href = "login.aspx";
window.opener.blur ;
window.close();
return;
}
where "myWin" is the name of the popup window.
PS: I havent tested this code for all possible scenarios but this might give
u an idea.

--
The best
srini
http://www.expertszone.com
"Kalyani" wrote:
Hi,
I have a page with a button.On click of this button a popup window
opens.Now if this window is kept open until session timeout then login page
opens in the same window.
Now I want that the popup window should be closed on session timeout
and login page should be opened in its parent window.How can I do that?

Please do tell me if any one knows.

Thanks in advance,
Kalyani

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stu | last post by:
Hi All, I have an ASP.NET application to which I have implemented forms authentication to handle security. It is a relatively straight forward solution with all aspx pages residing in the root...
2
by: yatharth | last post by:
I am facing a problem ,the situation is like this. I have a home page named "Index.html" ,on which there is login link,when i click on the login link the login popup opens and user enter the...
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...
1
by: ABC | last post by:
After the application user login, when I click the master page button, it popup window using javascript's window.showModalDialog function as: Response.Write("<script...
2
by: Ricardo Videira | last post by:
Hi to all. I'm having trouble with the following situation: I have a page where the user inserts some stuff and when he clicks on the submit button a popup window showing that info is launched...
1
by: gvrajkumar | last post by:
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...
1
by: sweetneel | last post by:
hi all, i am developing an asp.net Application. when i am clicking a link , it opens a pop up (login page). after successfull login , the disignated url opens in the popup window. this is a problem....
1
by: Jeyush | last post by:
Hey buddy, I have three pages 1)index.php 2)login.php 3)client.php. When I click on "login" on index.php page, it opens a popup. When I submit that login page at that time I want to redirect...
2
by: Blacky | last post by:
I have a main application window,from this we have one link(UUU) ,clicking on this will open a popup window. When I do a logout in main window and refresh the pop up window will lead to session...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.