So, what are cookies? According to Ullman (2009, p.238) "Prior to the existence of cookies, traversing a Web site was a trip without a history." therefore "Cookies are a way for a server to store information about the user - on the user's machine - so that the server can remember the user over the course of the visit or through several visits." (Ullman 2009, p.238)
In my project I am planning to include cookies to make navigation of the website more user friendly and therefore have been doing a bit of reading about them and it appears that there are three important things to know about working with cookies.
1. How to set a cookie
2. Retrieve information from a cookie
3. Delete the cookie
And Ullman also tells us that "there are two more things that you ought to know about cookies. The first is how to debug cookie-related problems. ... The second is how a cookie is how a cookie is transmitted and received." (Ullman 2009, p.239)
Now I am off to read more about cookies and how I can put the code together from the examples in the book.
Reference:
Ullman L. 2009, Visual Quickstart Guide - PHP for the Web, 3edn, Peachpit Press, Berkeley, CA
Thursday, September 17, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment