Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
May 10, 2022 3:21:58 PM
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.
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'
Troubleshoot too many sessions active in parallel
Qlik Sense April 2018 and later- Service account getting "You cannot access Qlik Sense because you h...
6 mashups: a user opens 6 different html pages, using different js files, opening 6 different mashups. I think that is pretty clear.
but, you raise a good point, the use of embedded sheets should be added to this list of what counts as sessions with some examples.
example, a user opens 6 embedded urls (chart or sheet) for 6 different apps in one browser. how many sessions is that?
@Ken_T accessing 6 different webpages in parallel, each with its own JS script embedding Qlik Sense content is very likely implemented so that each webpage initiates at least one new session with Qlik Sense each. In such case, the user will exhaust the max parallel sessions limit.
As I mentioned previously, if you refer to 6 different URLs through iFrames, it will be one session per iFrame. This is mostly due to how a browser handles the embedded webpage on a process level.
To validate the session count you need to be explicit about how you plan to embed objects, then you can validate the utilization through Qlik Sense logs as mentioned in the article.
If your mashup exhausts the limit, then you'd have to review how the mashup is constructed, and look for optimization to enable reusing the same connection.
If you are looking for more precise guidance on your mashup scenario and how to optimize it further, I'd suggest rating a post under the https://community.qlik.com/t5/Integration-Extension-APIs/bd-p/qlik-sense-integration-extension-api forum.
May I know what is the difference between this two?
Two virtual proxy one does it mean accessing to the hub using the link two times? and by multiple tabs meaning duplicating the tabs does not equal to two virtual proxy?
Hello @shienya
Two virtual proxy one does it mean accessing to the hub using the link two times
In this case, it means they are using two distinct Virtual Proxy URLs. You can set up multiple Virtual Proxies for you sense server, for example, ProxyOne and ProxyTwo. Accessing them will each count as one session, so you have two sessions total.
and by multiple tabs meaning duplicating the tabs does not equal to two virtual proxy?
This means you are just heading to one hub (using one proxy, so if you'd have the two from above-ProxyOne and ProxyTwo-you'd only use ProxyOne) and using the same browser window to have two tabs open. The browser will handle the multiple tabs as one session.
All the best,
Sonja