Pylons: Session set for all subdomains
July 14, 2009 § Leave a Comment
In order to have Beaker’s session applied to all subdomains, set cookie_domain to: .yourdomain.com (notice the dot in front).
In pylons, the cookie domain is available as: beaker.session.cookie_domain.
Also, in Google Group, Cezary mentioned to set also set sub_domain in routing.py
Note:
- This howto won’t work in Firefox. As far as I know, only Safari allows me to do this.
Reference:
- http://groups.google.com/group/pylons-discuss/browse_thread/thread/db4054fa3cc3b8e7
- http://beaker.groovie.org/configuration.html?highlight=sub%20domain