Hooks to extend the Session API.