How to read session variables of one session into another session of Perspective?

Hello,

I need to loop through all active Perspective sessions and check if the currently logged-in user (using self.session.props.auth.user.userName) is already logged into another session. If the user is found to be logged in multiple sessions, I want to alert them.

Thanks.

Hi there, I think this function may help with your problem, system.perspective.getSessionInfo. You can check details in the ignition documentation

3 Likes

Thanks chrisl

This is exactly what I was looking for.

1 Like