if you're making cookies that use only a small amount of jam, such as thumbprint cookies, you can safely store them at room temperature. however, you should refrigerate cookies that contain more preserves, such as fruit bars or rugelach, or use them within a day or two.