how to bake cookies code example

Example 1: make cookies pph

setcookie("cookiename", "cookievalue", time(), ".mydomain.tld", "/")

// coookiename: The name of your cookie
// cookievalue: The value of your cookie
// Time: The expiration date of your cookie. If you plan to make a product for the EU, it's 13 months max.
// .mydomain.tld: The domain that your webpage is using. You can only use the domain that the PHP file is on. Adding a dot before your domain will cover all subdomains.
// "/": This is the folder where your cookie will apply. If you want a specific cookie for the /mySpecialSuperSecretPages folder, you have to set /mySpecialSuperSecretPages
// Check the source for more options.

Example 2: How to make cookies

Directions
Step 1
Preheat oven to 375 degrees F (190 degrees C). In a small bowl, stir together flour, baking soda, and baking powder. Set aside.

Step 2
In a large bowl, cream together the butter and sugar until smooth. Beat in egg and vanilla. Gradually blend in the dry ingredients. Roll rounded teaspoonfuls of dough into balls, and place onto ungreased cookie sheets.

Step 3
Bake 8 to 10 minutes in the preheated oven, or until golden. Let stand on cookie sheet two minutes before removing to cool on wire racks.