anchor.diff:      end;
   % logout by deleting the session
   handle_session_req(#httpd{method='DELETE'}=Req) ->
  -    Cookie = mochiweb_cookies:cookie("AuthSession", "", [{path, "/"}, cookie_scheme(Req)]),
  +    Cookie = mochiweb_cookies:cookie("AuthSession", "", [{path, "/"}] ++ cookie_scheme(Req)),
       {Code, Headers} = case couch_httpd:qs_value(Req, "next", nil) of
           nil ->
               {200, [Cookie]};
  
positive.code:     NowMS * 1000000 + NowS.
  
  cookie_scheme(#httpd{mochi_req=MochiReq}) ->
      case MochiReq:get(scheme) of
          http -> {http_only, true};
          https -> {secure, true}
      end.
  
negative.code:                 ]});
          _Else ->
              % clear the session
              Cookie = mochiweb_cookies:cookie("AuthSession", "", [{path, "/"}] ++ cookie_scheme(Req)),
              send_json(Req, 401, [Cookie], {[{error, <<"unauthorized">>},{reason, <<"Name or password is incorrect.">>}]})
      end;
  % get user info
  