Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
Not applicable

Log out a user session using Jquery (delete method)

Hi everyone,

I am trying to make a simple example about how to remove a user session, I mean , expire all the sessions form the user. I wanted to create a simple example using Jquery sending my params to the QlikSense server, but I am not able first to understand the QlikSense api explanation. Imagine this case :

    

     $.ajax({ //https://<QPS machine name>:4243/qps/{virtual proxy/}user

    url : 'https://myserver.com/qps/' + $.param({"user":"administrator"}),

    type: 'DELETE',

   // dataType : 'json',

    success: function(data, textStatus, jqXHR)

    {

        //data - response from server

        alert("OK!!");

    },

    error: function (jqXHR, textStatus, errorThrown)

    {

  alert("KO!!!");

    }

  });

Is URL format correct?

Thanks a lot for those that will answer or know how to achieve a solution!

Regards