Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Logout Mashup Editor

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.

5 Replies
ErikWetterberg

Hi,

You could call app.close(). That will close your connection to Qlik Sense, but you will still be authenticated.

Erik Wetterberg

Anonymous
Not applicable
Author

Hi ,

I should put this in the .js file right? I am sorry , I am quite new to the mashup editor.

ErikWetterberg

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

Anonymous
Not applicable
Author

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.

PoojaG
Contributor
Contributor

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'
});
};