Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi ,
I am developing one web application to view qliksense dashboard. Currently trying to figure out on how i can create a logout button for the user.
Appreciate to those who can help me on this.
Thanks and Regards.
Hi,
You could call app.close(). That will close your connection to Qlik Sense, but you will still be authenticated.
Erik Wetterberg
Hi ,
I should put this in the .js file right? I am sorry , I am quite new to the mashup editor.
You need a button in the HTML file and connect the click event on that button to the API call. You would typically do that in the js file.
Erik Wetterberg
Thanks alot, this helps only to cut of the connection but if you happen to have a code for logging out from the web page , do let me know.
Hi Erik,
I want to take the user to the login page when logout button is clicked. How do you suggest I do that?
Currently I am using this function which is called on click of the logout button. But there is some error because of which this is not working. Can you help out?
function logoutbutton() {
$.ajax({
type: 'DELETE',
url: 'https://' + config.host + config.prefix + 'qps/user'
});
};