
<script>
    function OpenLogoutButtonHtml(){return HomeMenuButtons('assets/logout.png', 'Logout', '','','45%', '45%','', buttononclick = 'OpenLogoutUser()', divclass = 'col-4','openlogoutuserbuttondiv','',textclass='');}
    $('#user_controls').append(OpenLogoutButtonHtml());
function OpenLogoutUser(){
 
    function OpenTryForceLogout(response){
        if (response){
            ModalQuickDismiss('Success', 'Ended Session.');
        }
        else{
            ModalQuickDismiss('Failed', 'Unable to End User Session.');
        }

    }
    AjaxDo('?logout/force/user', { target_user: currenttarget}, OpenTryForceLogout, null, reqtype = 'POST');
}

</script>