Prevent duplicate cookies

Fix for https://rt.cpan.org/Public/Bug/Display.html?id=96497