Cookies arraynow being held and updated correctly