Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hello everyone,
I need to set some config information on the user session once the user logs on.
Is there an even that I could subscribe to when the user logs on?
Thanks
Hi,
There's no event related to User Log In.
If you redirect your users to the same mashup, you can do a call to a service there. Also you can do polling on current logged in users and check if there's any new. It's not really performant/ efficient solution but it may work.
Carles.
Sebastian, as Carles mentioned, you can run the GetActiveUsers service in the CurrentSessionInfo resource to check if they are connected and when the last connection was.
Thank you both for your reply.
However I am interested in executing a service just once when the user is logged on. The service should process some data and store it on the user's session (for performance reasons).
You can do this with both solutions proposed:
I may prefer option 1, as you can control the execution a bit more.