Logout of 2 websites: 1 link

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.
antoniokingAsked:
Who is Participating?
 
teodor bircaConnect With a Mentor Commented:
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
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
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
 
antoniokingAuthor Commented:
Wouldnt that just redirect the iframe website to the logout page of the main site?
0
 
antoniokingAuthor Commented:
Thanks for the advice!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.