473,811 Members | 2,971 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3241
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.l ocation.href = "login.aspx ";
window.opener.b lur ;
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
7717
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 folder. The issue I am experiencing is that when the authentication time out is activated and the user is hence unauthenticated, the browser window is on sometimes redirecting back to the login page. When the browser does or doesn't redirect to...
2
2616
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 login information in it. Now when the user click the submit button then new popup window
9
4729
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 Page1.aspx. The IIS Log shows (listed below) shows that the ASP.NET_SessionId cookie is not present in Popup.aspx. The thing is that this mechanism works for 99% of our users. There is this one user that is consistently having this problem. ...
1
1321
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 language='javascript'>window.showModalDialog('myURL.aspx', '', 'dialogWidth:800px:dialogHeight:600px');</script>"); Then, I click the button on the popup window, it will redirect to login page. It is not my expected. It should to do button events under the popup window.
2
1694
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 and the page "A" where he was is redirected to another page, page "B". This page "B" can also be accessed by other means. Can this be done? If so, how? I was trying to do this: protected void button_Click(object sender, EventArgs e)
1
12694
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 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.
1
10734
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. i want after login it should close the popup window. and open the designated url in the same page. my popup page is login.aspx . i am opening the pop up using javascript. closing the popup by: self.close() method. then if i use...
1
1790
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 to client.php. The problem arise here, when the submit is successful in login.php (popup window), my client.php page appears inside popup window.
2
1384
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 expiration and redirect to the login page. Then If I do login in the popup window and click on the link UUU is opening in the same window instead of opening in the new popup window. Following is the code description. If session is getting...
0
9734
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10653
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10395
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7674
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6895
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5564
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5700
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3876
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3027
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.