anchor.diff:          AuthSession = couch_util:decodeBase64Url(Cookie),
           [User, TimeStr | HashParts] = string:tokens(?b2l(AuthSession), ":"),
           % Verify expiry and hash
  -        case couch_config:get("chttpd_auth", "secret") of
  +        case couch_config:get("couch_httpd_auth", "secret") of
           undefined ->
               ?LOG_DEBUG("AuthSession cookie, but no secret in config!", []),
               {cookie_auth_failed, {internal_server_error, null}};
  
positive.code:                 throw({forbidden, <<"Name or password is incorrect.">>})
              end
          end,
          Secret = ?l2b(couch_config:get("chttpd_auth", "secret")),
          SecretAndSalt = <<Secret/binary, UserSalt/binary>>,
          Cookie = generate_cookie(UserName, SecretAndSalt, timestamp()),
          send_response(Req, [Cookie])
  
negative.code:                 true ->
                      TimeStamp = erlang:list_to_integer(TimeStr, 16),
                      Timeout = erlang:list_to_integer(couch_config:get(
                          "couch_httpd_auth", "timeout", "600")),
                      CurrentTime = timestamp(),
                      if CurrentTime < TimeStamp + Timeout ->
                          TimeLeft = TimeStamp + Timeout - CurrentTime,
  