Restrict OPC UA server to allow only one active session per user at a time

19 views
Skip to first unread message

Sangamesh hugar

unread,
Mar 11, 2025, 8:38:08 AMMar 11
to open62541
  Hi Team,

I am using the open62541 SDK to create an OPC UA server and would like to configure access control to prevent the same user from logging in multiple times simultaneously. Currently, the server allows multiple logins for the same user, and I need to enforce a restriction to ensure only one active session per user at any given time. 
I have tried implementing this in my application to restrict multiple logins for the same user, but the API is still performing the ActivateSession operation, allowing multiple sessions for the same user. Is it possible to restrict this by hardcoding, or do we need to modify the API itself.

Julius Pfrommer

unread,
Mar 11, 2025, 12:23:40 PMMar 11
to open62541
You can take the default plugin implementation for AccessControl and modify it to track the number of open sessions per user.
The AccessControl can block logins with a StatusCode.

Regards, Julius
Reply all
Reply to author
Forward
0 new messages