Handle multiple cookies correctly