Created
October 16, 2014 13:24
In later versions of CS10.0 a secure token is required for logout. This snippet can be placed in the appearance header to extract the logout link and execute it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(function($) { | |
$('.rhSingleClickLogout').click(function() { | |
var onClickStr = $('#ToolsGlobalMenu a[onclick*="ll.DoLogout"]').attr('onclick') + "; onclick();"; | |
eval( onClickStr ); | |
}); | |
}); | |
</script> | |
<a href="#" class="rhSingleClickLogout">Logout Now</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment