How to get the current session Location without REST Call?

Are you looking for this? https://demo.openmrs.org/openmrs/ws/rest/v1/location