CS 2135 (A01) Project
Guidelines for cookies in MzScheme

Here is an example script showing how to create and use cookies:

#!/bin/sh
string=? ; exec /usr/local/plt/bin/mzscheme -r $0 "$@"

(read-case-sensitive #t)

(current-library-collection-paths
 (cons "/home/kfisler/CS2135/collects/"
       (current-library-collection-paths)))

(require-library "cgi.ss" "2135net")

(let ([bindings (append (get-bindings) (get-cookies))])
  (generate-html-output/cookies
   "Short Order"
   (list (make-cookie "pizzastyle" "thin" "Wednesday, 3-Oct-01 23:12:40 GMT" "/~kfisler/" #f #f))
   (list
    (format "~a ordered a ~a pizza ~n"
	    (extract-first-binding 'Cust_Name bindings)
	    (extract-first-binding 'pizzastyle bindings)))
   ))