Fix for cookies in socket