Cookie and bar recipes are generally more forgiving than cakes, but all baking is based on chemistry.

Here’s how:

3.

To make a foil liner:

Blaine Moats

4.

Cookies on baking sheet with metal spatula

Credit:Robert Cardillo

Give Your Cookies Enough Time to Cool

Carefully follow the cooling directions in the recipe.

Bars often cool in the pan on a wire rack.

With enough cooling time, both cookies and bars will firm up nicely.

Greasing baking pan with butter

Credit:Andy Lyons

Then use a thin metal spatula to loosen bars around the edges of the pan.

Use a spatula to gently lift the bars from the pan.

Once you remove the cookies, let the cookie sheet cool and use a spatula to remove any crumbs.

Checking baked items on cookie sheet for doneness

Credit:Andy Lyons

Or rinse the cooled cookie sheet with cool water and dry thoroughly.

Sesame cookies cooling on baking rack

Credit:Blaine Moats