Added logic for loagind SessionStateFile