CS 2135 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
   "Dummy Routes"
   (list (make-cookie "origin" "boston" "Wednesday, 3-Oct-01 23:12:40 GMT" "/~kfisler/" #f #f))
   (list
    (format "You want to leave from ~a ~n"
	    (extract-first-binding 'origin bindings)))
   ))