This is a migrated thread and some comments may be shown as answers.

RadPane display login when session expires

1 Answer 29 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 26 Jan 2010, 08:59 PM
I have a website you have to login to use.  Using a RadSplitter and RadPane.  The RadPanes have aspx pages inside of them. 

If the users session expires and the PadPanes display the login page inside of it.  The preferred way would be the parent page to display the login page, instead of each page within the RadPane displaying it. 

Is there anyway to handle this easy?   The only solution I know right now is to have the login page check if it has a parent page, if it does it knows it is running within a RadPane, therefore call a javascript funtion on the Parent to have it change to the login page.

Any other options?

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 29 Jan 2010, 10:40 AM
Hi Mark,

I suggest to put the following script in the Login.aspx page:

if (window != window.top) window.top.location.href = window.location.href;

This will ensure that the Login.aspx page will always load at the top of the frames tree.


All the best,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Splitter
Asked by
Mark
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or