function killActiveSessions(e){
            e.preventDefault();
            var username = this.title.split(':')[0].trim();
            return xmodal.confirm({
                title: 'Kill Active Sessions?',
                content: 'Kill all active sessions for <b>' + username + '</b>?',
                okClose: false,
                okAction: function(obj){
                    XNAT.xhr.delete({
                        url: XNAT.url.rootUrl('/xapi/users/active/' + username),
                        success: function(){
                            obj.close();
                            XNAT.ui.banner.top(2000, 'Sessions closed', 'success');
                            // wait a few seconds before updating the row
                            updateUserData(username, 2000);
                            // updateUsersTable(true);
                        }
                    })
                }
            });
        }
// kill all active sessions for the specified user
kill all active sessions for the specified user
kill all active sessions for the specified user
function killActiveSessions(e){
            e.preventDefault();
            var username = this.title.split(':')[0].trim();
            return xmodal.confirm({
                title: 'Kill Active Sessions?',
                content: 'Kill all active sessions for <b>' + username + '</b>?',
                okClose: false,
                okAction: function(obj){
                    XNAT.xhr.delete({
                        url: XNAT.url.rootUrl('/xapi/users/active/' + username),
                        success: function(){
                            obj.close();
                            XNAT.ui.banner.top(2000, 'Sessions closed', 'success');
                            updateUserData(username, 2000);
                        }
                    })
                }
            });
        }
function killActiveSessions ( e ) { e . preventDefault ( ) ; var username = this . title . split ( ':' ) [ 0 ] . trim ( ) ; return xmodal . confirm ( { title : 'Kill Active Sessions?' , content : 'Kill all active sessions for <b>' + username + '</b>?' , okClose : false , okAction : function ( obj ) { XNAT . xhr . delete ( { url : XNAT . url . rootUrl ( '/xapi/users/active/' + username ) , success : function ( ) { obj . close ( ) ; XNAT . ui . banner . top ( 2000 , 'Sessions closed' , 'success' ) ; updateUserData ( username , 2000 ) ; } } ) } } ) ; }
kill all active sessions for the specified user
kill all active sessions for the specified user
// wait a few seconds before updating the row // updateUsersTable(true);