[Seaside] Cookies (again?)

David Röthlisberger davidroe at bluewin.ch
Sat May 15 20:28:57 CEST 2004


> >   But what is the best way to _set_ cookie from the component? I've
> > found "WAGenericResponse cookieAt: put:' and assume that I can add
> > some code  to WASession to use it, right?
> Try something like this:
> renderContentOn: html
> html document cookieAt: 'foo' put: 'bar'.

I'm in the same situation, but for me this piece of code doesn't work. I use
the newest Seaside version for VW 7.2 (i.e. 2.5.15) and there "html
document" (a WAHtmlStreamResponse) does not understand #cookieAt:put: .
Is there another solution to set a cookie?

best regards,

More information about the Seaside mailing list