Posts

Showing posts from February 21, 2019

Setting the domain in the AuthSession cookie for CouchDB

Image
7 When using cookie based authentication in CouchDB, the domain appears to be set to the domain of the host; foo.com for example. If we wish to access this session from a subdomain; bar.foo.com for example, this will fail. From my limited experience with managing cookies, it appears that if you set the domain to .foo.com (notice the leading dot . ), then you can access these cookies on subdomains. Is it possible to change the domain that CouchDB uses when setting the cookie to include the leading dot? authentication couchdb share | improve this question edited Sep 28 '12 at 16:27 Octavian Damiean