session: register handlers