re #569 - Draft: register custom user.session object to prevent exceptions when invoking the user session