This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes on session expire in iframe - open login page in parent window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "on session expire in iframe - open login page in parent window" Watch "on session expire in iframe - open login page in parent window" New topic
Author

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

Koti Samadhi
Greenhorn

Joined: Aug 26, 2009
Posts: 29
Hi All,

i am facing a problem. i am using Iframe on one of my JSP Page. now when session is expired, i want the parent page to be redirected to login page. but i am not able to do so. when i check session in IFrame window and redirect user to login page, then only in Iframe user looks Login page, not the Parent page is redirected to Login page.

I will provide the screen shot for reference.



[Thumbnail for issue.JPG]

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

Please take the time to choose the correct forum for your posts. This forum is for questions on JSP. For more information, please read this.

This post has been moved to a more appropriate forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

Use top to find the top-most window.
 
 
subject: on session expire in iframe - open login page in parent window
 
Similar Threads
Prevent opening page in new window
Using window.open( ).......
escaping an iframe
escaping an iframe
Invalid session