[plt-scheme] cookies and redirect

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Mon Jan 30 20:24:34 EST 2006

I don't have example code of using cookies with the server. Do you
know what the HTTP response is supposed to look like? I can probably
whip something up.

Jay

On 1/30/06, pedro pinto <pedro.e.pinto at gmail.com> wrote:
> Does anyone have an example of a simultaneous redirect + setcookie using PLT
> scheme?
>
> I tried:
>
> (make-response/full 303 "See Other"
>                               (current-seconds)
>                               #"text/html"
>                               `((location . ,url)
>                                 ,(make-session-id-cookie session-id))
>                               (list
>                                (xexpr->string
>                                 ...
> )))
>
>
> The redirect works fine but no cookie is apparent.
>
> -pp
>
> _________________________________________________
>   For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>
>


--
Jay McCarthy <jay at cs.brown.edu>
http://jay.makeoutcity.com/


Posted on the users mailing list.