Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

on session expire in iframe - open login page in parent window

Posted on 2010-08-17
2
Medium Priority
?
1,009 Views
Last Modified: 2012-06-27

hi there,

how do i open the login page in parent window on session expires in iframe.

I use vb. net and asp.net 3.5

Thanks
Nitesha
0
Comment
Question by:Redshelf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Expert Comment

by:Jini Jose
ID: 33453775
if your iframe source is test.aspx, then in the page load, you can check the session and if it expires you can do the below.
            Page.RegisterStartupScript("ToLogin","<script language='javascript'>window.parent.location.href=\"http://localhost:2672/ShowPage.aspx?Id=9\";</script>");

Open in new window

0
 

Accepted Solution

by:
Redshelf earned 0 total points
ID: 33455777
hi

above solution did not work for me.

i have copied the followinbg code in my login page and it worked.

<SCRIPT LANGUAGE=JavaScript>
<!--
  if (top.frames.length!=0)
   top.location=self.document.location;
// -->
</SCRIPT>


0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question