[Seaside] Cookies (again?)
Vadim Kolontsov
vk at tvcom.ru
Mon May 17 15:12:49 CEST 2004
David Röthlisberger wrote:
> For my purpose it is a little bit cumbersome to use HtmlStreamResponse to
> set a cookie, because I have a login form, then a user clicks on the
> 'login'-button, so the corresponding method #login is called, where I check
> user's nick and password and set a cookie.
Agreed; I also thought about it.. I like Avi's proposal on this.
> And for the moment you can only set name and value of a cookie form Seaside,
> but not things like expires time or domain of a cookie, or do I miss
> something?
Seems so. But there is a workaround, just use something like this:
html document
cookieAt: 'name'
put: value, '; expires=Mon, 24-May-2004 00:00:00 GMT'.
Works for me. You can also add domain & path.
Best regards,
Vadim.
More information about the Seaside
mailing list