Skip to content

Commit

Permalink
Fixed session management behavior on NetFramework
Browse files Browse the repository at this point in the history
  • Loading branch information
bpassaro95 committed May 23, 2022
1 parent 05745f5 commit 73839ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dotnet/src/dotnetframework/GxClasses/Domain/GxHttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,7 @@ HttpResponseMessage ExecuteRequest(string method, string requestUrl, CookieConta
{
handler.ServerCertificateValidationCallback = ((sender, certificate, chain, sslPolicyErrors) => ServicePointManager.ServerCertificateValidationCallback(sender, certificate, chain, sslPolicyErrors));
}
if (IncludeCookies)
handler.CookieUsePolicy = CookieUsePolicy.UseSpecifiedCookieContainer;
handler.CookieUsePolicy = CookieUsePolicy.UseSpecifiedCookieContainer;
#endif
if (GXUtil.CompressResponse())
{
Expand Down Expand Up @@ -749,7 +748,7 @@ public void HttpClientExecute(string method, string name)
CookieContainer cookies = contextCookies ? _context.GetCookieContainer(requestUrl, IncludeCookies) : new CookieContainer();
response = ExecuteRequest(method, requestUrl, cookies);

if (contextCookies && IncludeCookies)
if (contextCookies)
_context.UpdateSessionCookieContainer();


Expand Down

0 comments on commit 73839ed

Please sign in to comment.