Update Cookie.php

Don't compare hashes with ===, use a consant-time comparison function