[plt-scheme] cookies and redirect
Never mind, the code I posted does work. I think I might have forgotten to
refresh the servlet cache.
-pp
On 1/31/06, Jay McCarthy <jay.mccarthy at gmail.com> wrote:
>
> 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/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20060131/e2828dae/attachment.html>