Making safe the cookies and sometime, by link, the sessions is essential in the web development. But in the first times, you need to understand the mechanisms.
The website Carsonified explain how works the cookies en give some secure things for them.
The complete post : How to Create Totally Secure Cookies

Posts that maybe you want to read ::