The variable "$cookievalue" is the data to be saved in the cookie.
setcookies is the PHP funtion we are going to use.
"COOKIENAME" is the name of the cookie to be save, This could be any thing from "password" to "username".
Then the variable is set as the cookie value.
Then we can set when the cookie will expire. This is in seconds. 600 seconds is 10 minutes.
Now we have set a cookie lets find out how to display it on the page.
Displaying the value of a cookie: