1 |
In HTTP header, the brower passes to server any cookies that are valid for a given page
|
2 |
Note only name=value is passed since PATH, DOMAIN, SECURE, and EXPIRES are used to check if cookie should be passed
|
3 |
The server stores cookie strings in $HTTP_COOKIE environment variable as name1=value1; name2=value2;
-
A simple CGI script can decode this environment variable
|
4 |
One can send cookies back to client using
|
5 |
Set-cookie: name1=value1; EXPIRES=...; ...
|
6 |
before the
|
7 |
content-type: text/html
|
8 |
header line
|