Added a hook for customizing sessions.