Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
niel_sylvain
Partner - Contributor II
Partner - Contributor II

Disconnect

I have successfully login with qlik and certificates and Ticket.

I use websocket to communicate with the api to display apps and sheets and i display then throw an iframe in my website

But how can i disconnect the qlik user i used to obtain ticket. I have a qlik cookie registered in the browser and i cant disconnect with the qlik disconnect button. I have my website disconnect button which should disconnect the qlik user also at session end programmatically.

Actually when i disconnect from my webapp and i reconnect with anoter account i still have the last qlik user connection

2 Replies
oz_moyal
Creator
Creator

How do u try to disconnect the qlik session when your website button is clicked ?

example of how u should disconnect using JavaScript is:

$.ajax({

type: 'DELETE',

url: 'https://' + config.host + config.prefix + 'qps/user'

});

This works in a mashup (without iframes, but I think it should work also for u)

niel_sylvain
Partner - Contributor II
Partner - Contributor II
Author

Thanks for your reply.

When the user disconnect i call the url <qlik server>:4243/qps/<virtual proxy>/user/<directory>/<userId> from the server throw the certificates. I kill the session but in the browser there is still the cookie and files in cache.

When i reconnect with another account, if i clean the cache its working but not if i dont

I tried your method : $.ajax({type: 'DELETE',url: 'https://' + config.host + config.prefix + 'qps/user'});

but i have security issues due to cross scripting. I can't call this url directly and throw the websocket i have not found any API to end user session