If you are using custom aurthentication (PRCustom authentication type) then you can have a step in the authentication activity. Once the operator is verified then you can put a entry in the table and then show the desktop.
For logout you can configure the similar activity on log out.
Thank you for posting your query on PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s at the top of this screen and also on our Pega Support Community homepage. Once created, please reply back here with the URL of the new post.
We have also sent you a private message opening up a communication channel in case you have any further questions.