[Zope] Setting a session's domain

Dieter Maurer dieter at handshake.de
Tue Nov 15 13:27:36 EST 2005


Pablo Ziliani wrote at 2005-11-15 10:15 -0300:
>I'm developing a site that has multiple subdomains (i.e.: 
>http://atlanta.website.com, http://nyc.website.com, etc.). Can anybody 
>point me how can I get the session to be shared across these different 
>subdomains? Unless someone can give me an opposite advise, I think I 
>need to specify a "domain" to the cookie which is trivial for regular 
>cookies but I just can't find how to do it with sessions (notice that I 
>am I'm using Zope's regular request.SESSION).

The "Browser Id Manager" ("browser_id_manager" in your Zope "Root Folder")
is responsible for the session cookies. It has a configuration option
to choose the cookie domain.

-- 
Dieter


More information about the Zope mailing list