This function takes the following parameters:
The SSO token handle.
The name of property to get.
Whether to check if session is valid first. If true and session is invalid, NULL will always be returned.