• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

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...

Any help will be greatly appreciated.
  • 2
1 Solution
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?
antoniokingAuthor Commented:
Wouldnt that just redirect the iframe website to the logout page of the main site?
teodor bircaCommented:
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.
antoniokingAuthor Commented:
Thanks for the advice!
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.

Join & Write a Comment

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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