Solved

Logout of 2 websites: 1 link

Posted on 2014-01-23
4
216 Views
Last Modified: 2014-02-20
I have a website with an iFrame placed in the centre.
The iFrame has a asp link 'Log out'

Users click this link and are logged out of the iframe website.
I'd like it to also log them out of the main website

the code for the logout link is
<asp:HyperLink ID="hlLogout" runat="server" NavigateUrl="~/logon.aspx?sessionend=true">Close Portal</asp:HyperLink>

the url to log out of the main site is...
"~/users/login.aspx?logout=1"

Any help will be greatly appreciated.
0
Comment
Question by:antonioking
  • 2
4 Comments
 
LVL 32

Expert Comment

by:Big Monty
Comment Utility
can you edit /logon.aspx that if another querystring parameter exists (such as logout=1) then to redirect to /users/login.aspx?logout=1?
0
 

Author Comment

by:antonioking
Comment Utility
Wouldnt that just redirect the iframe website to the logout page of the main site?
0
 
LVL 3

Accepted Solution

by:
teodor birca earned 500 total points
Comment Utility
you should only run session.abandon and eventually a redirect .. hovewer after they receive session.abandon even if they click another link will be redirected to login.
0
 

Author Closing Comment

by:antonioking
Comment Utility
Thanks for the advice!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now