Hello Anthony,
Thank you for the response.
As discussed, if the login() returns HASP_FEATURE_EXPIRED so the session would not generate thus getSessionInfo() would not work.
However, if the session was already active and the feature gets expired in the meanwhile then it doesn't ends the active session abruptly. In such case, the getSessionInfo() still remains working.
Please feel free to share if you have any further thoughts.
Best Regards,
Parth Kaushik