Skip to content

Cookies are not being handling in the same way from v108.0.3 to new ones  #2074

@iRetlaWM

Description

@iRetlaWM

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

Additional context
Snag_54b97b62
Snag_54b98a47

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions