Amazing! Thank you Jason that fixed it. I've been pulling my hair out over this one for almost 24 hours now.
Could you please provide some technical instruction about what the @ does and why it fixes the problem - I would like to understand it better.
I saw your recommendation to use the @ in some similar posts on this forum (@setcookie ....) but I didn't know exactly where to put it in my case.