Skip to main content

How to count sessions in Qlik Sense

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Yoichi_Hirotake
Former Employee
Former Employee

How to count sessions in Qlik Sense

Last Update:

May 10, 2022 3:21:58 PM

Updated By:

Jamie_Gregory

Created date:

Jul 13, 2018 12:55:35 AM

How are sessions counted in Qlik Sense? 

The following are examples of how sessions are counted within Qlik Sense.  

  • One user opens Qlik Sense Hub with One browser on One machine = 1 session
  • One user opens Qllik Sense Hub with One browser but Multiple tabs on One machine= 1 session
  • One user opens Qlik Sense Hub with Two different browsers on One machine= 2 sessions
  • One user opens Qlik Sense Hub with One browser, then closes the browser and reopens it = 2 sessions
  • One user opens Qlik Sense Hub with One browser on Two different machines = 2 sessions
  • One user opens Qlik Sense Hub and two Apps in one browser, two different tabs and on a mobile device = 2 sessions
  • One user opens Qlik Sense Hub from Two virtual proxy with One browser on One machine= 2 sessions
  • One user opens Qlik Sense Management Console (QMC) with One browser on One machine = 1 session
  • One user opens a Qlik Sense Mashup using Two Apps hosted from the same proxy = 1 session

 

Sessions will be terminated after the currently configured Session timeout in the Qlik Sense Proxy.
If the Qlik Sense engine or Proxy are terminated or crash, Sessions are ended right away.

Once the maximum number of parallel user connections (5) is reached, this will be documented in the AuditSecurity_Repository log. To identify if this is the issue, review the relevant log and review how the user is interacting with the system. 


The log is stored in:
C:\Programdata\Qlik\Sense\Log\Repository\Audit\AuditSecurity_Repository.txt

The related message reads: 
Access was denied for User: 'Domain\USER', with AccessID '264ff070-6306-4f1b-85db-21a8468939b5', SessionID: 'e3cd957b-a501-4bec-a3f8-d35170a73efa', SessionCount: '5', Hostname: '::1', OperationType: 'UsageDenied'


Related content:


Troubleshoot too many sessions active in parallel
Qlik Sense April 2018 and later- Service account getting "You cannot access Qlik Sense because you h...
 

Tags (1)
Labels (1)
Comments
ansarikashif2017

Had a query on the 4th line:

  • One user opens Qlik Sense Hub with One browser on One machine after closing the same browser which opened Hub = 2 sessions

When the Browser is closed, won't that close the session at that moment itself?

 

Sonja_Bauernfeind
Digital Support
Digital Support

Hello @ansarikashif2017 

I have rephrased the line a bit to make it easier to parse.

To answer the question: When you close a browser and then re-open it and return to the hub, a new session ticket is created. 

All the best,
Sonja 

 

Sivapriya_d
Creator
Creator

Hi @Sonja_Bauernfeind ,

Would it be considered  as 2 sessions if one user opens QMC & Hub with one browser on same machine?

 

Thanks,

ToniKautto
Employee
Employee

@Sivapriya_d  my experience is that the same Qlik Sense Proxy session is utilized if you open Hub and QMC in parallel. You can see this by simply checking the session cookie for the two different windows or tabs. 

You may see different behavior depending on how the browsers share existing session cookies between different windows, tabs, and processes.

Sivapriya_d
Creator
Creator

Thanks @ToniKautto 

Ken_T
Specialist
Specialist

Is the limit of 5 hard coded or is it configurable?

Ken_T
Specialist
Specialist

found the answer on the community, there is a feature request / enhancement request / idea for this
https://community.qlik.com/t5/Knowledge/Increase-max-parallel-SessionCount-for-Qlik-Sense-end-user/t...

Ken_T
Specialist
Specialist

could more details be given for this as related to mashups?
If a user opens multiple different mashups, lets say 6, in one browser.  is that 6 sessions or 1 session?

If the user opens 6 mashups in one browser, and then opens 6 mashups in another browser - how many sessions will that be and will it trigger a message about too many sessions used? In my recent testing this has triggered a too many session error and this made me realize I am not sure how this works with respect to mashups.  Can you elaborate on how sessions are handled by mashups, using the above examples to clarify? 
 

Sonja_Bauernfeind
Digital Support
Digital Support

Hello @Ken_T 

I'll look into getting you more details. 

All the best,
Sonja 

ToniKautto
Employee
Employee

@Ken_T I'm not sure what you mean by "6 mashups", but often when session limit is reached for mashups it is due to that the mashup does not efficiently reuse open connection. 

If you embed 6 object from a single app in a webpage and use the same session/connection to retrieve these from Qlik Sense server then it only consumes one session. In such scenario, it work the same way as the native Qlik Sense client where you can see multiple (and more than 6) objects on the same sheet. 
However, if you embed object through iFrame, it will typically require one connection per iFrame as the browser will run this as a separate process/page. Avoiding iFrame is often a good way to optimize mashup performance and connection reuse. 

Increasing the current limit is likely to have negative impact on deployments, as more session adds workload to the server and open up for sharing same license among multiple users which may not be desirable for Qlik. The current numbers has been defined as a balanced value in regard of usability and performance, so I think it is unlikely to change in the near future. 

For discussion around your specific use case,  https://community.qlik.com/t5/Integration-Extension-APIs/bd-p/qlik-sense-integration-extension-api, might be a good forum area to discuss further with the Community integration experts.

Version history
Last update:
‎2022-05-10 03:21 PM
Updated by: