Creating Web Apps  «Prev  Next»

Lesson 5 Creating cookies
Objective Describe how cookies are created.

Creating Internet Cookies

Cookies are generated on the server in response to a client requesting a URL. A CGI (Common Gateway Interface) script is typically used to implement cookies. The CGI script sends a "Set-Cookie" header as part of the HTTP response, as illustrated in the following MouseOver:


Cookie Header Elements
In the next lesson, you will learn about the functionality that server-side scripts provide.