Qlik Community

Integration, Extension & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

QlikWorld 2022, LIVE in Denver CO., May 16-19, 2022. REGISTER NOW TO RECEIVE EARLY BIRD PRICING
Showing results for 
Search instead for 
Did you mean: 

How to prevent other visitors seeing your selections when authenticated using demo user?

Hello all,

This question follows on from my previous discussion: Enabling exportData for anonymous users from mashup

I successfully set up authentication of anonymous users using the qlik-auth module and virtual proxy configuration as show on Qlik Branch.  However, the issue is that all users can now see the selections of other users on the same qap mashup. Is there any way of forcing different sessions for the same authenticated user based on their location/ip address/some other way to ensure that users are authenticated using the dummy user but cannot see the selection of the others?

Any help would be greatfully appreciated as we are considering whether or not to purchase QAP licences within the next day or so and this is a showstopper.

Thanks in advance.

3 Replies

I just found out that by adding an identity parameter to config in the call to the OpenApp method, this prevents sharing of the session.

var intRandomSessionID = Math.floor((Math.random() * 1000000000) + 1);



var config = {

               host: window.location.hostname,

               prefix: prefix,

               port: window.location.port,

               isSecure: window.location.protocol === "https:"



As a test, I used a random number as identity, but I will try to get the IPaddress, so that selections can be shared across pages within the same mashup.


Hmmmm!  I changed the code to pass the identity string to in the URL and only assign a random number if no identity was passed.  So far, so good.  I checked the value of app.model.session.cacheName and confirmed that they were the same (apart from the reloadUri part, of course, see below). However, it seems that the selections are not being passed from page to page.  I am worried about passing the selections in the URL too as there could be a large number of filters and large number of selected values. 



Does anyone have any clues? 


yes it works.
Thanks for the help