Skip to main content
11-Garnet
Nov 2, 2023 8:27 AM UTC
Question

How to get global session values on login/logout/sessionexpired event

How to get  global session values on login/logout/sessionexpired event of Security Monitor in Thinworx.

i have written a subscription that executes on login/logout/sessionexpired event and in that i am trying to get session values but the session is null here.

 

 

 

4 replies

19-Tanzanite
Nov 2, 2023 9:54 AM UTC

Hi @PP_10477715 

 

Session Values are temporary data that will be cleared when the user logs out or on session time out. So session data will be null when you try to access it from the server side. I think you need to look for other alternatives for your use case.

 

More about session parameters - Session Parameters (ptc.com)

 

/VR

 

Translate
11-Garnet
Nov 2, 2023 9:56 AM UTC

Thanks @Velkumar  for your response but it is true for logout and session time out , but don't you think it shouldn't be null on login succeed event?

Translate
19-Tanzanite
Nov 2, 2023 10:27 AM UTC

Hi @PP_10477715 

 

It does have value when the user login.

 

But it can be accessed by the user in Mashup Runtime it cannot be used by Timer/Subscription

 

May I know your use case to understand better

 

/VR

Translate