Page 1 of 1

How have information of client leave for server

Posted: 31 Mar 2023, 14:52
by franck.etienne
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.

Re: How have information of client leave for server

Posted: 11 Apr 2023, 08:34
by ThomasZ
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.