@KlausTrainer How about to use [couch_httpd_auth/timeout](http://docs.couchdb.org/en/latest/config/auth.html#couch_httpd_auth/timeout) config value instead? It uses for the same case: [to check](https://github.com/apache/couchdb/blob/master/src/couchdb/couch_httpd_auth.erl#L195) the cookie for expiration.