cookies retain their quality when stored in the freezer for eight to 12 months. moist bars, such as cheesecake and lemon bars, can be refrigerated for seven days. for best quality, store bars in the freezer for two to three months.