Hi all,
On my OPCUA SDK C++ server, I verify client connection with X509 certificate.
I use method MyServerCallback::logonSessionUser in myservercallback[.h|.cpp].
It's works fine for logon but I need to know when clients disconnect/logoff as a client is authorized to have only 1 session at a time.
There is no logoff or exit or quit session method.
Thank's for your help.
How have information of client leave for server
Moderator: uasdkcpp
-
- Sr. Member
- Posts: 16
- Joined: 01 Jun 2016, 13:08
-
- Sr. Member
- Posts: 12
- Joined: 02 Mar 2023, 13:41
Re: How have information of client leave for server
Hi,
when the session is closed, the UaSession::close() callback (https://documentation.unified-automation.com/uasdkcpp/1.7.8/html/classUaSession.html#a959abf22325b8962d71f989fdf8558f5) is called.
when the session is closed, the UaSession::close() callback (https://documentation.unified-automation.com/uasdkcpp/1.7.8/html/classUaSession.html#a959abf22325b8962d71f989fdf8558f5) is called.