[racket] a simple? regexp-match/replace

From: scouic (scouic at gmail.com)
Date: Wed Oct 20 17:03:59 EDT 2010

Hey noel, thank you, it works perfectly.

However, i have the following problem : i can't modify my cookie-value ...
my blog starts with
(define start request)
  ( my-home-page request))

(define (my-home-page request)
  (define foo (make-cookie "id" "my-content")
  (set! foo (set-cookie "id" "another content") ;; so now the content of the
cookie has changed
 `(html (body (p ,(print-cookie foo))
  (a (href 'a-link to (a-post request))" "link")

(define (a-post request)
   (set! foo (set-cookie "id" "master content")) ;; here, why can't modify
my cookie value ?

(serve/servlet start)

I don't understand : i start my blog wich calls (my-home-page), and this one
creates a cookie. But in (a-post request) i can't i modify my cookie,
because foo is an unknown word ...
How can i retrieve the content of my cookie in my (a-post ...) function ?

thanks for your help,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20101020/e071801e/attachment.html>

Posted on the users mailing list.