0 Replies Latest reply: Sep 21, 2016 11:16 AM by Oscar Garcia Bofill RSS

    Log out a user session using Jquery (delete method)

    Oscar Garcia Bofill

      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