Updated vendor/utils with functions for the new cookie structure