Yes. In general:
* setup routing with subdomain=True:
http://routes.groovie.org/manual.html#sub-domain-support
* add to your config.ini
base_domain = yourbasedomain.com
* add BaseController.__before__ code:
if session.is_new:
session.cookie[session.key]['domain'] =
'.%s'%request.environ['paste.config']['app_conf']['base_domain']
session.cookie[session.key]['path']= '/'
session.request['cookie_out'] =
session.cookie[session.key].output(header='')
Note however, that this trick is pre 0.9.6. Now it might be easier to setup.
Best regards,
Cezary Statkiewicz
--
Cezary Statkiewicz - http://thelirium.net
rlu#280280 gg#5223219
jabber://ce...@jabber.org
You need to specify to use just the last portion (.example.com) for
the beaker cookie. You can set this in your ini file with:
beaker.session.cookie_domain = .example.com
Cheers,
Ben