Skip to main content
11-Garnet
November 2, 2023
Question

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

  • November 2, 2023
  • 1 reply
  • 1350 views

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.

 

 

 

1 reply

19-Tanzanite
November 2, 2023

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

 

11-Garnet
November 2, 2023

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?

19-Tanzanite
November 2, 2023

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