My page is split with one RadSplitter. My navigation is on the left using a RadPpanelBar inside a RadPane and the main body on the right contains a RadPane.
I am using FormsAuthentication. However, when a session times out both panes display my login form. If a user clicks Log Off in the RadPane on the right, only it displays the login form.
Neither of these behaviors is desirable. If a user logs off or a session times out, I want the parent page to load the login form. To accomplish this I put this function in the onLoad of the Login page:
| <script type="text/javascript"> |
| function logon(){ |
| try{ |
| if (self.parent.frames.length != 0) |
| self.parent.location=document.location;} |
| catch (Exception) {}} |
| </script> |
This seems to work. The login page checks to see if it is in a frame and if so breaks out. Now the problem is when the user successfully logs back in it only loads the content of the right pane in the whole window. The parent page isn't loaded, only one of the content panes.
Surely others of you have dealt with this. What's the solution?