#27 using session state instead of 'updated' flag to check if there's an available session