The Save To Cookie component is fairly easy to use. In the input section, you specify the datatype of the value you want to store with Type, and select the value off the stream with Variable Value. Then you can give the cookie a name with Cookie Name.
You can choose how long the cookie persists on the Persistence tab. Check Is persistent and specify the Expiration Date
If you want to fetch the values later on, you can use the Get From Cookie component. Specify the datatype (same as Save to Cokkie) and put the same cookie name as you entered on Save to Cookie.