Update `env.session` structure.