Capture login and logout events that occur on the ThingWorx page in an external MSSQL DB.
The audit log use case requires capturing login and logout information (user and timestamp) in an external MSSQL database. Our FormLogin.jsp page in ThingWorx handles user authentication using ThingWorx Users. However, we need to capture login and logout events that occur on the ThingWorx page, which must be stored in an external MSSQL database. Please assist with the steps, sharing a code snippet would be greatly appreciated.

