Rename `req.sid` to `env.session_id`.