[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 372
  • Last Modified:

Logout Logic ???

Hi

I have a Frame based application, In this frame (Left page  & Right page), all pages displays in the right page has LOGOUT button, when I click I'm ending the session and saying Thanks U message. Now the problem is when I click logout button, it is ending the session and Thank U message is shoing up in the right page itself. But I can still view Left page (menus). Ofcourse when I click on menus in left page, its not working bcoz of session end. But what I want is when U logout, whole frame should dissappeare and single page of Thank U message should come.

Regards,
H

0
princehyderabad
Asked:
princehyderabad
  • 5
  • 3
1 Solution
 
sajuksCommented:
try putting this after your alert
 parent.top.location=index.html // your initial page
0
 
princehyderabadAuthor Commented:
you mean as Javascript ?? can u explain in detail please.
Is this index.html is like thank U page you mean.
0
 
sajuksCommented:
I assume when you login you go to a page called as index.html. This index.html is a frameset consisting of left and right frames. left to show menu and right to show the screens.
I assume that you have some sort of image or button on the menu which says logoff.
This can be either an html page or jsp page,
Assuming you have a button you an code it like
<input type ="button" onclick = "parent.top.location='index.html'" value="Logoff">

Your index.html page can be your startup page/thankyou page
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
princehyderabadAuthor Commented:
Thanks, Sajuks !!
Any idea in the frames how to show the pages links. As U know in the frames when u navigate thru pages it does'nt show the page names that on the address bar it is the static name. Any idea how to display page names as U navigate thru the pages ....

Thx,
0
 
sajuksCommented:
Using frames it wont be possible to show the actual page name ( i assume you mean the address bar ).But why would you want to do that i.e show the actual address ?
0
 
sajuksCommented:
Thanks for the points and grade
0
 
princehyderabadAuthor Commented:
U r welcome, well actualy I was told to show the actual address so thats why asking is there any way ?
0
 
sajuksCommented:
On the address bar, dont think so.
If you want to dispaly it on the page you can use this
<SCRIPT LANGUAGE="JavaScript"><!--
document.write('The Actual URL of thie document is '+location.href+'.<BR>')
//-->
</SCRIPT>
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now