Redirecting to login page from a popup window.

G

Guest

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top