modified getting session to be inside app to prevent errors when loading appwithout settings initialized
modified getting session to be inside app to prevent errors when loading appwithout settings initialized

tethysplatform/tethys,tethysplatform/tethys,tethysplatform/tethys,tethysplatform/tethys