Solved

Logout of 2 websites: 1 link

Posted on 2014-01-23
4
224 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 33

Expert Comment

by:Big Monty
ID: 39804011
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
ID: 39804112
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
ID: 39813769
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
ID: 39872754
Thanks for the advice!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

831 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