Run session_code outside of session checking