removed usage of session_status()