Session error handler can handle situation when error object carries passportLogout attribute. passportLogout forces to remove login details from session data. This is useful in case when we need to handle users' deserialize errors.