eiri commented on issue #1598: Request: Include cookie expiry time in Set-Cookie header URL: https://github.com/apache/couchdb/issues/1598#issuecomment-419451121 Ah, this is already possible, just under documented 😞 There are also a configuration for cookie domain, for what it's worth. The configuration looks like this: ```ini [couch_httpd_auth] allow_persistent_cookies = true timeout = 600 cookie_domain = .asgard.org ``` and this gives: ```bash $ curl -v http://127.0.0.1:15984/_session -H 'Content-Type: application/json' -d '{"name":"odin","password":"asgard"}' * Trying 127.0.0.1... * Connected to 127.0.0.1 (127.0.0.1) port 15984 (#0) > POST /_session HTTP/1.1 ... < Set-Cookie: AuthSession=b2Rpbjo1QjkyODYzQzpzHjxQ0b7aKwit3CnK7cCJ3Gt8PA; Version=1; Expires=Fri, 07-Sep-2018 14:17:56 GMT; Max-Age=600; Domain=.asgard.org; Path=/; HttpOnly ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services