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

WHAT ARE HTTP COOKIES?

Before we jump into Flash and JScript, let’s take a moment to really understand cookies and the function they serve in the world of HTTP and web applications. It is actually not entirely necessary for you to understand cookies before you can use them for data storage with the code I have provided here; however, the section that follows will help provide you with a broader perspective on the technology we will be exploring.

First of all, one of the biggest challenges developers face when designing applications for the web is the fact that HTTP is inherently stateless. In other words, HTTP defines a protocol for clients (usually browsers) to make requests to servers and for servers to respond to those requests. That’s essentially it. How can a server know that two consecutive requests were from the same client? Why is that you can enter a username and password once, and not have to re-authenticate every time you make a new request? A server cannot depend on clients’ IP addresses being unique because any number of users could be using a single proxy server and therefore all appear to have the same IP address. Netscape’s answer (which has since become a widely adopted standard) was cookies.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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