Properly handle session timeout, or its absence.