cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] share/page/dologout not working in enterprise

wayzz1992
Champ in-the-making
Champ in-the-making
Hi
I just upgraded from Alfresco Community 5.0 to Alfresco Enterprise 5.0 Trial Version.
I am following this tutorial http://docs.alfresco.com/5.0/concepts/auth-alfrescontlm-sso-loginbypass.html to create a custom logout button.
This same method used to work in the Community version but not in the Enterprise trial version.
What am I missing?

My coding is very simple :

<li>
    <a href="http://--ip--:8080/share/page/dologout">Logout</a>
</li>
3 REPLIES 3

parashiftaustra
Confirmed Champ
Confirmed Champ
Hi there,

The dologout URL is now no longer a GET request, you will need to submit a POST request to that URL. There are a few reasons for this:

1. A common attack is to force you to logout with an embedded iframe when going to a site. This means an attacker, with just a html link, could force your users to log out.
2. Some browser plugins now pre-fetch URLs to expedite load times. If they prefetched the dologout URL then you would be logged out using one of these plugins.
3. Within REST design, GET actions should not have any side effects, i.e, they should not change the state of the system.

Hope this helps.

Hi
I have created the form and strictly speaking its logging out but its displaying a blank page.
What do I have to do so the user is redirected to the login page?

Thanks in advance.

wayzz1992
Champ in-the-making
Champ in-the-making
For anyone with same question what I did is posted the form with jquery ajax and reloading the page:

$('#logoutButton').click(function(){
                    $.ajax({
                            type: "POST",
                            url: "http://-ip-/share/page/dologout"
                          })
                        .always(function() {
                          location.reload();
                    });
                });