Hi Manish,
If you need to access the session in a microflow, you can retrieve it using the current user token. In a microflow, use the retrieve activity by association and expand "currentUser". From here, you can retrieve the list of sessions.
You can also use an inheritance split to cast the current session.
Here is an example that does that.
https://modelshare.mendix.com/models/36b56eec-7e0b-4b6f-87f6-3bed98ba062e/cast-current-session
Hope this helps!