Solved

Logout of 2 websites: 1 link

Posted on 2014-01-23
4
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
looking for an ASP.net report designer 4 43
Where does legacy ASP.NET initialize language? 2 64
send email part1 9 40
Send parameters via datatable ajax call 4 13
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
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).

730 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