couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sinan Gabel <sinan.ga...@gmail.com>
Subject CouchDB configuration: the {couch_httpd_auth: timeout} parameter & pouchdb-authentication
Date Tue, 12 May 2015 18:37:29 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message