It would be convenient, consistent with the design of the rest of the framework, and intuitive if Yii included hooks in the session event handlers in CHttpSession, so that I could configure callbacks for specific events in the lifecycle of the session (from the config file), without having to subclass the handler.