You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Sinan Gabel <si...@gmail.com> on 2015/05/12 20:37:29 UTC

CouchDB configuration: the {couch_httpd_auth: timeout} parameter & pouchdb-authentication

Hi,

Is there a recommended setting of the CouchDB configuration:
{couch_httpd_auth: timeout} parameter value when using CouchDB user
authentication (login) via the pouchdb-authentication .js library.

PROBLEM: The default cookie refresh time is 10 minutes with
pouchdb-authentication, and I loose the session connection after a few
minutes if I set the {couch_httpd_auth: timeout} parameter to less than 10
minutes (e.g. 1 minute when testing this). I get error 401 and 500 codes
depending on what I try.

OK: When I use a high value for the {couch_httpd_auth: timeout} parameter
e.g. 1,209,600 (two weeks) then everything works fine!

Note that I am experimenting on a laptop.

Best,

Sinan