Assign ptr in parseCookie