[Seaside] Adding domain to a cookie

Lukas Renggli renggli at gmail.com
Wed Dec 6 13:42:04 UTC 2006


> I'm developping an application with Seaside for which I'm sending a
> cookie using #redirectWithCookie: .
> This application is deployed on 3 servers that share the same domain
> name. I'de like the cookie to be attached to the domain, not to the
> server. But I can't find a selector to specify the domain name.
>
> How can I achieve this ?

I don't think you can do this out of the box, but you can certainly
change the implementation by looking at #redirectWithCookie:

I guess this cookie-question is somehow related to your
Apache-Load-Balancing question, that I don't really get. I suggest not
to use cookies whenever possible (a lot of people have them disabled
anyway), but instead modify the generated URL. So if you want to tag
requests to go to a specific image I suggest to override #updateUrl:
in the root component and add a parameter identifying the image. Like
this you can also do the Apache rewriting easily.

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the Seaside mailing list