If stored properly, freshly baked cookies could last up to two to three weeks at normal room temperature, for cookies with fillings and frostings made from eggs or dairy products like custard fillings or frostings, cheese, buttercream, and whipped cream.