• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 5. Passing Data Between Pages > Setting and Retrieving Cookies

Setting and Retrieving Cookies

Up to this point, you've seen different ways to use forms and simple links to collect user data, to make that data available to another page, and to make use of it on that page. In spite of their differences, though, form and querystring variables have something important in common: Each is good for sending data from one page to another, but after that they vaporize into the forgetfulness of the HTTP protocol.

When you build Web applications, you will often want certain pieces of data to persist beyond a single request/response transaction, and forms and querystrings won't do for that. However, other variable types do persist beyond a single transaction. How is that possible, given the limitations of the HTTP protocol? The answer is that their data is stored on a hard drive—the user's or the server's—and retrieved or set as a part of every request/response transaction that requires that data.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint