This stores "print "Content-type: text/html", "\n"; print "Set-cookie: MeLove=Cookie%20Monster", "\n\n" print "<HTML">;.....rest of Web page
MeLove=Cookie Monster
" with the
browser. The following Perl CGI code reads a cookie:
Each cookie can have several extra attributes:print "Cookie:", $ENV{'HTTP_COOKIE'}, "\n";
Name=Value
Name
" and
"Value
" can be any ASCII
string.expires=DATE
domain=DOMAIN
path=PATH