Classic christmas cookies: delicate linzer cookies
How Long Do Christmas Cookies Last? Shelf Life by Type
How Long Do Christmas Cookies Last? Shelf Life by Type
How long Christmas cookies last depends mainly on two things: how much free water they contain and where you store them. Dry baked kinds keep for weeks: unfilled linecké (Czech Linzer-style jam cookies) 4–6 weeks, pracny (Czech spiced nut cookies baked in shell-shaped tins) and vanilla crescents made with ground nuts 2–3 weeks in a cool place. Soft, moister gingerbread, which you should store apart from the crisp dry kinds, keeps 6 weeks to 6 months. Cookies with a filling of buttercream, mascarpone, pudding or condensed milk are counted in days and belong in the fridge. In the freezer, most kinds stay at their best quality for 2–3 months. Below you'll find shelf life type by type, what goes in the pantry, what goes in the fridge, why a balcony is not a fridge, and the signs that your cookies are past their prime.
Shelf Life of Christmas Cookies by Type: Overview
Dry baked kinds keep 2–6 weeks, soft, moister gingerbread 6 weeks to 6 months, and cream-filled cookies 2–7 days in the fridge, up to 10 days with cream caramel. The times below apply to a closed tin. Dry kinds assume a cool, dry room (up to 20°C / 68°F, ideally 10–15°C / 50–59°F), cream-filled ones the fridge (up to 5°C / 41°F). The figures are for best quality, not for the last day it is still edible.
Gingerbread — 6 weeks to 6 months, in a tight tin at room temperature or in the pantry, apart from the crisp dry kinds. The longest-lasting of all Christmas cookies.
Unfilled linecké — 4–6 weeks in the pantry. Just fat, flour and sugar, no extra moisture.
Pracny — 2–3 weeks in a cool place. Butter dough with ground walnuts and spices; the limit is the nuts, which go rancid.
Vanilla crescents — 2–3 weeks in a cool place. The limit isn't mold but the ground nuts, which go rancid.
Meringue cookies — 2–3 weeks, and only in truly dry conditions. Humidity ruins them sooner than time does.
Kokosky (coconut macaroons) — 2–3 weeks. Once baked, the egg white has little left to spoil, but coconut is fatty and picks up smells.
Linecké sandwiched with jam — sandwich them about 3 days before serving: they peak 3–10 days after assembly, then gradually soften. They stay edible for 2–3 weeks.
No-bake balls made from sponge fingers and fat — 10–14 days in a cool place.
Cookies with cream caramel — 7–10 days in the fridge.
Cookies with buttercream (butter and sugar, no milk) — 4–7 days in the fridge.
Cookies with condensed milk cream — 5–7 days in the fridge.
Cookies with pudding or other milk-based cream — 3–4 days in the fridge.
Cookies with mascarpone — 2–3 days in the fridge.
No-bake with quark or cream — 2–3 days in the fridge, no exceptions.
The times for cream-filled kinds are our own, deliberately cautious recommendations, not an official limit. Homemade cream has no preservatives and every batch is different, so we'd rather plan for the worse case. The good news: almost all the dry kinds on this list can be frozen and thawed so that nobody can tell.
Want to know what’s next every Thursday until Christmas?
How to soften gingerbread that’s gone hard, when to fill Linzer cookies and how to tell the carp is done. One recipe and one tip a week. Unsubscribe in one click.
Christmas cookie shelf life chart by type
Dry baked cookies keep 2–6 weeks in a closed tin in a cool place, gingerbread 6 weeks to 6 months, cream-filled ones only 2–7 days in the fridge; most kinds freeze for 2–3 months.
| Cookie | Where to store | Keeps | In the freezer |
|---|---|---|---|
| Gingerbread | tight tin, room or pantry, kept apart | 6 weeks – 6 months | without icing, 2–3 months |
| Unfilled linecké | pantry, 10–15°C (50–59°F) | 4–6 weeks | up to 6 months |
| Linecké sandwiched with jam | pantry, 10–15°C (50–59°F) | 2–3 weeks, peak 3–10 days after assembly | freeze them unfilled |
| Pracny and vanilla crescents | cool place, tight tin | 2–3 weeks | 3 months |
| Kokosky (coconut macaroons) | cool place, kept apart (they pick up smells) | 2–3 weeks | 2–3 months |
| Meringue cookies | truly dry conditions only, kept apart | 2–3 weeks | don't freeze |
| No-bake balls made from sponge fingers and fat | cool place | 10–14 days | 2–3 months |
| With cream caramel | fridge, up to 5°C (41°F) | 7–10 days | – |
| With buttercream (no milk) or condensed milk cream | fridge, up to 5°C (41°F) | 4–7 days | 1–2 months at most |
| With pudding or other milk-based cream | fridge, up to 5°C (41°F) | 3–4 days | don't freeze |
| With mascarpone or quark | fridge, up to 5°C (41°F) | 2–3 days | don't freeze |
| With raw-egg cream | fridge, up to 5°C (41°F) | 24 hours at most | – |
Why Filled Cookies Are Counted in Days and Dry Ones in Weeks
Filled cookies last only days because the filling contains free water (a water activity of roughly above 0.75), while dry baked cookies sit around 0.2–0.3. What matters is free water, not total water. Food scientists have a number for it, water activity (aw), and the rule is: below 0.70 most molds and yeasts don't multiply, apart from a few species tolerant of dryness and sugar, and below 0.60, according to food-industry references, no microorganisms multiply at all. A dry cookie is therefore far below the point where mold could take hold. Jam lies roughly in the range of 0.75–0.85, higher for less sweetened ones. Buttercream sits higher than jam and depends on the ratio of sugar, fat and milk. Quark, mascarpone or cream are at roughly 0.95–0.99, where bacteria grow too, not just molds. That is exactly why quark and mascarpone belong in the fridge and are counted in days. (Take these figures as approximate ranges, not as a measured value for a particular batch.)
That's why a filled cookie isn't "the same cookie, just with a filling". It's a completely different food with a completely different timer. And that timer also ticks in a way you'll notice before any mold: water from the filling migrates into the drier cookie until the two even out. Linecké sandwiched with jam therefore peaks 3–10 days after assembly and then softens, even though it won't spoil for another two weeks.
Why Cookies with Ground Nuts Go Rancid Sooner
Cookies with ground nuts go rancid sooner because grinding multiplies the surface exposed to oxygen. In dry cookies, shelf life therefore ends not with mold but with the fat turning rancid. Unsaturated fats react with oxygen in the air and turn into aldehydes, which you smell as the typical "old nut" or oily aroma.
Two reasons why this hits crescents, pracny and vosí hnízda (Czech wasp's nest cookies) in particular:
Grinding increases the surface. A whole nut oxidizes slowly; a ground nut has several times more surface exposed to oxygen, and it goes an order of magnitude faster.
Walnuts are the most sensitive. According to storage tests, shelled walnuts start to smell rancid after a few weeks at room temperature, ground ones even sooner; in the cold and without air, they last for months.
This leads to one practical rule: grind your nuts on the day you bake and keep finished crescents and pracny in a cool place. A rule of thumb among food scientists says that chemical reactions, including rancidity, roughly double with every extra 10°C. A pantry at 12°C (54°F) gives you about twice the time of a living room at 22°C (72°F).
Fridge, Pantry or Balcony?
Dry cookies belong in a cool, dry pantry (10–15°C / 50–59°F), cookies with buttercream, mascarpone, pudding, quark or condensed milk cream in the fridge (up to 5°C / 41°F), and a balcony replaces neither. What to store where:
Pantry, larder, cool hallway (10–15°C / 50–59°F) — linecké, pracny, crescents, kokosky, meringues, linecké with jam; soft gingerbread too, but in a separate tin. The ideal: cool, dry, dark and a steady temperature.
Fridge (2–5°C / 36–41°F) — everything with buttercream, mascarpone, pudding, quark, cream or condensed milk cream, and no-bake kinds with dairy ingredients. Always in a closed tin, otherwise the cookies absorb fridge smells.
Room (around 22°C / 72°F) — only dry kinds for a few days, or whatever you'll eat that same day. For cream-filled cookies on the table, count in hours, not days.
Why dry cookies don't belong in the fridge: each time you take them out, moisture from the air condenses on the cold cookies, and in a closed tin they then turn soft. Linecké, pracny and especially meringues go soft within two days. Cream-filled cookies, on the other hand, should come out of the fridge 15–20 minutes before serving, since buttercream goes hard when cold and has little aroma.
Can I Store Cookies on the Balcony?
Better not to store cookies on the balcony: a balcony is not a fridge, because its temperature swings by ten degrees or more during the day, and with every swing moisture condenses on the cookies. A fridge holds a steady 2–5°C (36–41°F); a balcony in December doesn't.
Temperature swings. Frost at night, easily +8 to +10°C (46–50°F) by day, and in the sun a metal tin heats up even more. For cream, anything above 5°C is closer to room temperature than to a fridge.
Condensation. You bring a cold tin into a warm apartment and dew forms on the cookies and inside the lid. Dry kinds go soft, meringues start to stick.
Freezing and thawing. Cream that freezes overnight and thaws by day separates and lets water out into the cookie. Repeated freezing and thawing is worse for texture than one proper freeze in the freezer.
Damp and visitors. Fog, rain, and birds or martens going after a tin on the balcony count too.
So at most dry, unfilled kinds in a tight metal tin and in the shade, and even then you risk them going soft. Cream-filled cookies never: those belong in the fridge.
How Long Do Christmas Cookies Last in the Freezer?
In a freezer at −18°C (0°F), cookies keep 2–3 months at best quality, and dry baked kinds without filling can easily last 6 months. The freezer stops mold and rancidity almost completely, but over time quality suffers from drying out and from smells, so use a well-sealing container.
These freeze well:
linecké and pracny, ideally unfilled (you sandwich them after thawing),
vanilla crescents (roll them in sugar only after thawing),
gingerbread without icing,
kokosky and the shells for vosí hnízda,
no-bake balls made from sponge fingers and fat,
cookies with buttercream or condensed milk cream, in our view 1–2 months at most.
These don't freeze well:
meringue cookies, which go damp and collapse as they thaw,
pudding cream, which releases water and turns grainy after thawing,
mascarpone, quark and whipped cream fillings, which curdle and turn watery,
egg-white icing and a dusting of powdered sugar, which you should finish after thawing.
Freeze cookies that have cooled completely, in layers separated by paper and in a container that seals well. Thaw them in a closed container and open it only when the contents have reached room temperature. You'll find the whole method, including how to freeze the dough itself, in our article how to freeze Christmas cookies and dough and thaw them so they don't go damp.
How Long Do Linecké Cookies Last?
Unfilled linecké keep 4–6 weeks, those sandwiched with jam 2–3 weeks (best 3–10 days after assembly), and those sandwiched with buttercream 4–7 days in the fridge. The difference isn't made by the dough but by what's between the rounds.
Plain rounds — 4–6 weeks in the pantry, up to 6 months in the freezer.
With jam — 2–3 weeks in the pantry; peak 3–10 days after assembly, then they gradually soften.
With cream caramel — in the fridge, 7–10 days.
With buttercream — in the fridge, 4–7 days.
A practical approach that gives you both shelf life and crispness: bake ahead and sandwich about 3 days before serving. Plain rounds keep happily in a tin for a month. After assembly, the jam binds the dough over three to four days just enough without making it soggy; after that, the linecké only softens.
One more trap: linecké that crumbles or turns out hard after baking won't last any longer. Dry and hard are not the same thing; hardness comes from an overworked gluten network, not from low moisture.
Classic crisp linecké with red currant jam: unfilled rounds keep up to six weeks
Linzer cookies filled with salted caramel
Linecké filled with salted cream caramel: keep sandwiched ones in the fridge and eat within 7–10 days
Unconventional linzer cookies with pistachios
Linecké with pistachios and buttercream with hazelnut spread: sandwiched ones belong in the fridge
How Long Does Gingerbread Last?
Gingerbread keeps 6 weeks and, stored well, easily half a year, making it the longest-lasting kind of Christmas cookie. Honey and invert sugar bind water, so gingerbread stays soft and dries out slowly. Soft gingerbread can still go moldy, though, so it needs a dry, tightly sealing tin.
With gingerbread you therefore don't ask "will it last?" but "has it softened yet?". Freshly baked gingerbread is hard on purpose; it softens only as it draws moisture back from the surrounding air (or from an apple in the tin). That's exactly why it's baked first, as early as November. Change the apple in the tin every 2–3 days, though, or it will start to go moldy itself.
The only thing that cuts its shelf life is egg-white and sugar icing: over time it cracks and flakes off. It doesn't affect the taste, but it does the looks. Freeze gingerbread without icing and decorate it after thawing.
Soft honey gingerbread cookies that never go hard
Soft honey gingerbread that doesn't go hard: keeps for weeks or months
How Long Do Vanilla Crescents Last?
Vanilla crescents are at their best for 2–3 weeks, and 3 months in the freezer. They don't spoil as such; they just start to smell of old oil as the ground nuts gradually go rancid.
What really extends the shelf life of crescents:
Almonds instead of walnuts. They have far less polyunsaturated fat (~12 g vs ~47 g per 100 g), and that's the fat that goes rancid fastest.
Grinding just before mixing the dough, rather than buying a ground mix a month ahead.
Rolling them in sugar while lukewarm and again once cool, and storing them coated. A layer of powdered sugar draws off surface moisture and keeps the crescents drier. It won't help with rancidity, though; only cold and a tight tin do that.
Storing them separately. Crescents are a dry kind; in the same tin as gingerbread they soak up its moisture and turn rubbery within a week.
The best christmas cookies? vanilla crescents, of course!
Vanilla crescents that stay at their best for three weeks
How Long Do Pracny, Kokosky and Meringue Cookies Last?
Pracny keep 2–3 weeks in a cool place, kokosky 2–3 weeks and meringue cookies 2–3 weeks, as long as no moisture gets to them. With pracny you watch the nuts, with kokosky and meringues the air in the room.
Pracny are a butter dough with ground walnuts and spices (typically cinnamon and cloves), pressed into small tins. Mold isn't a threat; as with crescents, the limit is the nuts going rancid. Hence 2–3 weeks in a cool pantry in a tight tin, not in a warm living room; freeze what you won't eat, and it keeps 3 months in the freezer. When they go soft, it's almost always the moister kind in the same tin that's to blame.
Kokosky are built on egg white, sugar and shredded coconut. Egg white alone has little left to spoil after baking, but coconut contains fat and above all absorbs surrounding smells. In a tin next to gingerbread, a kokoska will smell of gingerbread within a week.
Meringue cookies are made of sugar and egg white and are the most hygroscopic of all Christmas cookies. In a humid kitchen they go damp and start to stick within two days, however well they were baked. They belong in neither the fridge nor the freezer. A few sugar cubes in the tin can help, or a sachet of silica gel, but only food-grade silica gel. The sachets from product packaging are marked as inedible and don't belong in a tin with cookies.
French coconut macaroons with honey and dark chocolate
French kokosky with honey and a dark chocolate base: 2–3 weeks in a closed tin in a cool place
How Long Do No-Bake Cookies Last?
No-bake cookies made from sponge fingers and fat keep 10–14 days in a cool place, and with quark, mascarpone or cream only 2–3 days in the fridge. The range is so wide because "no-bake" isn't one recipe but three different levels of risk.
Sponge fingers, fat, cocoa, powdered sugar. The most common version. Dry ingredients plus fat keep water activity low, and 10–14 days in a cool place is no problem.
The same with rum or liqueur. Alcohol lowers water availability a little, but in the amount that goes into the dough it's mainly flavor. Count on a few extra days rather than weeks. Don't rely on it for preservation at all: some of the alcohol does evaporate, but the effect on shelf life is negligible.
Anything with quark, mascarpone, cream or raw egg. That's no longer a Christmas cookie, it's a fresh dessert. Fridge and 2–3 days, with raw egg 24 hours at most.
Warmth is a worse enemy of no-bake than of baked: without a baked structure, shapes slump in the warmth and the fat separates. Above 20°C (68°F), shelf life drops quickly, so keep no-bake kinds in the pantry or the fridge.
Cocoa date & oat balls
Cocoa balls made from oats and dates: vegan no-bake cookies, in our view about a week in the fridge
Baileys white chocolate truffles with sponge biscuits
Baileys balls with white chocolate and sponge fingers: no-bake cookies with liqueur, store in the fridge
How Long Do Cream-Filled Cookies Last?
Cream-filled cookies keep 2–7 days in the fridge depending on the cream: with mascarpone or quark 2–3 days, with pudding cream 3–4 days, with condensed milk cream 5–7 days and with pure buttercream 4–7 days. The exception is thick cream caramel, which keeps 7–10 days. Outside the fridge, count in hours, not days. All of these times are our own, deliberately cautious recommendations.
Pudding cream is largely milk. High water activity, no protection. Into the fridge and eat within 3–4 days. Don't freeze; it releases water after thawing.
Cream cooked with milk (such as coconut filling) behaves like pudding cream: fridge, 3–4 days.
Whipped cream as a filling is a dead end. Within 24 hours it turns both the cookie and itself soggy.
The same trick applies as with linecké: fill only in the last few days. Unfilled shells and cream kept separately last much longer than the finished cookies. Which cream to choose so that it keeps and holds its shape, we cover in our article how long cream-filled Christmas cookies last and what to fill them with.
How Long Do Cookies with Buttercream Last?
Cookies with buttercream keep 4–7 days in the fridge if the cream is just butter and sugar; with pudding or milk in the cream, 3–4 days. Outside the fridge, leave them for a few hours at most.
Butter and plenty of sugar do bind part of the water, so buttercream is more resistant than pudding cream. But it's still a dairy product: at room temperature it softens, separates, absorbs smells and the butter starts to go rancid. That's why we keep it in the fridge, not "somewhere cool in the hallway". Rum in the cream adds flavor but won't extend its shelf life.
In the freezer, cookies with buttercream keep, in our view, 1–2 months. Thaw them in a closed container in the fridge.
Grandma's traditional wasp's nest cookies with rum cream
Traditional vosí hnízda with rum butter cream: keep finished ones in the fridge and eat within 4–7 days
How Long Do Cookies with Mascarpone Last?
Cookies with mascarpone keep 2–3 days in the fridge and at most 2 hours outside it. Mascarpone is a fresh cream cheese with a high water content. Even the sugar in the cream doesn't bring it into a safe range, so it behaves like quark or whipped cream, not like a Christmas cookie.
Fill the day before serving, not a week ahead.
Keep both the cream and the finished cookies in the fridge in a closed tin.
Don't freeze it: after thawing, mascarpone curdles, turns grainy and releases water into the cookie.
How Long Do Cookies with Condensed Milk Cream Last?
Cookies with condensed milk cream keep 5–7 days in the fridge. Condensed milk (Czech salko) is sweetened condensed milk: it contains a lot of sugar, which binds water, and that's why an unopened can keeps for months in the pantry. Once you open it and mix it with butter, though, it becomes an ordinary dairy cream, and that belongs in the fridge.
Butter and condensed milk cream — fridge, 5–7 days; in our view 1–2 months in the freezer.
Cooked condensed milk (dulce de leche-style caramel) — the same, fridge and 5–7 days. Don't confuse it with cream caramel, which is cooked thicker and keeps 7–10 days in the fridge.
Opened condensed milk: transfer it from the can to a closed container and put it in the fridge. Follow the information on the packaging, and if there isn't any, use it up within a few days.
How Long Do Cookies with Raw-Egg Cream Last?
Keep cookies with a cream made from raw yolk or white in the fridge and eat them within 24 hours at the latest. With raw eggs, besides shelf life there's also the risk of salmonella, so it pays to cook an egg cream or use pasteurized eggs. How to do that and which creams are affected, we explain in our article raw eggs in Christmas cookies and creams and the risk of salmonella.
Cocoa star cookies with coconut cream
Cocoa stars with coconut filling cooked with milk: into the fridge and eat within 3–4 days
How to Tell When Cookies Are Past Their Prime
You can tell cookies are past their prime when they bend instead of snapping, turn sticky and lose their aroma; you should stop eating them only when they smell of rancid fat, musty or sour, or have a coating. So tell apart two different things: cookies that are no longer good (edible, there's just no point offering them) and cookies that are no longer safe (into the bin). The signs differ and are easy to confuse.
How to Tell Cookies Have Lost Quality
Cookies past their prime bend instead of snapping, turn sticky and lose their aroma. They're edible, just no longer good. Specific signals:
Crisp kinds bend instead of snapping. A linecké or pracna can be bent without breaking; it has absorbed moisture.
Meringue cookies stick to your fingers or have tiny droplets of syrup on the surface.
Gingerbread is rock hard and crumbles when you bite it instead of giving way. It dried out because the tin wasn't tight.
The flavor has blurred. Vanilla, lemon zest and spices literally fade after a few weeks; volatile aroma compounds go before anything else.
Everything tastes the same. The classic result of storing all the kinds in one tin.
What to do: crumble them for a fruit cake, stir them into yogurt, or bring crispness back to dry kinds with a little heat: 5 minutes at 140°C (285°F) and cool on a rack. Don't use heat on cream-filled cookies.
When Not to Eat Cookies: Signs of Spoilage
Throw cookies out if they smell of rancid fat or musty, or have a coating, a sticky film or a sour taste. Any one of these signs is enough on its own:
Rancid fat. You notice it by smell before taste: sharp, oily, "old nut" or the smell of an old deep fryer. Typically in crescents, pracny, vosí hnízda and everything with ground nuts or buttercream.
A musty or cellar-like smell right after opening the tin. It can be the first sign of mold, so it's better to throw the cookies out. (A musty smell can also be absorbed from the surroundings or come from rancid fat, but guessing doesn't pay here.)
Any fuzzy, gray-green, white or black coating, especially at the join with the jam or cream.
A sticky, damp film on the surface of a kind that should be dry.
A sour or alcoholic taste in cookies with quark, mascarpone, cream, condensed milk or fruit filling. It usually means fermentation.
Cream that has released water, yellowed at the edges or smells sour, even if it still holds its shape.
For filled and moist cookies there's one more simple rule: if you're not sure of the date, you're not sure of the cookies either. Write the baking date on the tin, and for cream-filled kinds the filling date too. It saves you all the guessing.
Treat this overview as general information about food and storage, not as an expert opinion. With a doubtful batch, the bin always wins.
What Extends the Shelf Life of Christmas Cookies the Most
Five things extend the shelf life of cookies the most: storing kinds separately, the right place (dry ones in a 10–15°C / 50–59°F pantry, cream-filled ones in the fridge), late filling, a tight container and freezing. Ranked by real impact:
Store kinds separately. Crisp dry ones (linecké, pracny, meringues) and soft, moister ones (gingerbread, filled) never in one tin. Moisture evens out and spoils both at once.
Put each kind in its place. Dry ones in a cool, dry pantry, where you get roughly double the time compared with a 22°C (72°F) living room; not in the fridge, as moisture condenses on cold cookies. Cream-filled ones, conversely, only in the fridge, not on the balcony.
Don't fill or sandwich ahead. Shells separately, filling separately, and join them a few days before serving (about 3 days for jam, a day for mascarpone).
A closed container, not a bowl with plastic wrap. A metal tin with a tight lid or a jar with a clip.
Freeze what you won't eat within a month. In the freezer most kinds keep 2–3 months practically unchanged, and thawing has its own rules, which matter more than the freezing itself.
Frequently asked questions
When should I start baking Christmas cookies so they last until Christmas?
Bake the gingerbread first, as early as the beginning of November, the plain linecké rounds three to four weeks ahead, pracny and nut crescents two to three weeks ahead at most, and the filled ones only in the last week. Gingerbread improves with resting, unfilled linecké holds its shape for a month, with pracny and crescents you watch for the nuts turning rancid, and anything with cream, quark or mascarpone is counted in days. A practical plan: gingerbread in November, plain linecké rounds and no-bake balls in early December, pracny and crescents around mid-December, and the last week for sandwiching, filling and glazing.
How long can cream-filled cookies stay out of the fridge?
Don't leave cream-filled cookies out of the fridge for longer than about 2 hours, and for less in a warm room or a car. This comes from the general rule for chilled foods, and for cookies with mascarpone, quark, pudding or condensed milk we take it literally. For travel, pack them in a cooler bag with an ice pack, put out on the table only as many as will be eaten, and return the rest to the fridge.
Can I refreeze cookies after thawing?
You can refreeze dry baked cookies without filling, but not creamy ones. With linecké or pracny, a second freeze costs only a little crispness and aroma. Don't freeze cookies with buttercream, condensed milk, pudding or mascarpone a second time: the cream separates after another thaw, softens the cookie, and the time spent at room temperature adds up. Freeze in small batches that you'll eat in one go.
How long does cookie dough keep in the fridge?
Linecké and other butter doughs keep in the fridge for 3–4 days if you wrap them well in plastic wrap. Gingerbread dough is left to mature anywhere from a day to several weeks, and the longer it rests, the easier it is to roll out; follow the recipe you're working from. Butter dough starts to darken on the surface after three days and picks up smells from the fridge, so it's better to freeze it than to leave it for a week.
Do store-bought cookies last longer than homemade?
Store-bought cookies usually last longer than homemade ones because industrial production works with a lower water activity in the dough, invert syrups and packaging in a protective atmosphere. Invert syrups bind water, and a protective-atmosphere pack contains very little oxygen, which is exactly what sets off rancidity. At home you don't have those tools, but you do have freshly ground nuts and real butter, which is precisely the difference behind the shorter shelf life.