Fix bug where session ids weren't stored when a session timed out.