Browse Source

Merge pull request #10992 from wangkx/h19372

HPCC-19372 Clean login error cookie after authenticated

Reviewed-By: Russ Whitehead <william.whitehead@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 7 years ago
parent
commit
95b4d5769d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      esp/bindings/http/platform/httpservice.cpp

+ 1 - 0
esp/bindings/http/platform/httpservice.cpp

@@ -1219,6 +1219,7 @@ EspAuthState CEspHttpServer::authNewSession(EspAuthRequest& authReq, const char*
     addCookie(authReq.authBinding->querySessionIDCookieName(), cookieStr.str(), 0, true);
     cookieStr.setf("%u", authReq.authBinding->getClientSessionTimeoutSeconds());
     addCookie(SESSION_TIMEOUT_COOKIE, cookieStr.str(), 0, false);
+    clearCookie(SESSION_AUTH_MSG_COOKIE);
     clearCookie(SESSION_START_URL_COOKIE);
     if (unlock)
     {