Limiting number of concurrent session by user

Dear all experts

Is there any way to limit the number of concurrent sessions by users in DHIS2?

Hannan

1 Like

Dear All
HI,
We have the same question.
Is there any way to limit the number of concurrent sessions by users in DHIS2?

Kazem

1 Like
....

Hi @Hannan

Would you please create a feature request for this on jira.dhis2.org?

Then @kazem_zendehdel and other community members can add their votes / watch to receive updates on this feature.

update: @Hannan & @kazem_zendehdel,

Following up with the developers, you are right, this feature already exists. It wasn’t in the documentation but @netroms has added it:

Number of possible concurrent sessions on different computers or browsers for each user. If configured to 1, the user will be logged out from any other session when a new session is started.

max.sessions.per_user = 10

https://github.com/dhis2/dhis2-docs/blob/master/src/sysadmin/installation.md#:~:text=dhis2.org/api-,%23,-Number%20of%20possible

Thank you!

Dear Gassim @Gassim
We tested this on different versions, even 2.38,
But we can still do multiple logins at the same time with one username.
This means that we can still create multiple sessions with one username at a time.
Please explain how to use,
Thank you

1 Like

Thank you @alijm for reporting this to the community! One of the core team developers tested it and confirms your post so he has created a Jira bug issue DHIS2-13453 Not possible to change max concurrent user sessions

Please know you can watch this issue to receive notifications when updates are made.

Thanks! :+1: