Skip to content Skip to sidebar Skip to footer

How To Check Number Of Active Users In Dash App?

How would one check the number of 'active users', i.e. number of users having the web page open in browser at any given time in a Dash web application?

Solution 1:

There are a number of ways to achieve this.

Firstly the more robust approach would be to leverage the auth service you probably already setup so that users are correctly permissioned (a request to a token service would identify each user). After this you can record the initial site load by inserting an entry into a backend database.

You don't need to use an auth service of course you could just record the users IP address and insert into the database

If you wanted to know who is using your web app at any given time then one approach would be to add an interval timer callback which would add these entries to the database along with the access time

Post a Comment for "How To Check Number Of Active Users In Dash App?"