-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed as not planned
Closed as not planned
Copy link
Labels
Description
DO NOT USE ISSUES FOR QUESTIONS
Describe the bug
Using only a client to execute a request and generate sessions tokens and after executing another request using the same client this is not generating other session cookies
To Reproduce
Using this snipped code with v 108.0.3 new cookies for second request works fine but using latest versions not generate all the cookies
var options = new RestClientOptions("https://url-that-genarate-a-token");
var client = new RestClient(options);
var request = new RestRequest("/Account/Login");
var response = await client.ExecuteAsync(request);
var otherRequest= new RestRequest("/Account/Login");
otherRequest.AddParameter("Username", "11111", ParameterType.GetOrPost);
otherRequest.AddParameter("Password", "P@ssword", ParameterType.GetOrPost);
var otherResponse = await client.ExecutePostAsync(otherRequest);Expected behavior
The new cookies with the sessions should be generated in latest request, if you see attached screenshots in version 110.2.0 the otherResponse only contains 3 Cookies and in version 108.0.3 contains 8 cookies
Desktop (please complete the following information):
- OS: Windows 11
- .NET Core 6.0
- Version 110.2.0
Reactions are currently unavailable

