Tell me how you can get cookies from the site (cookies are in the chrome browser) using c #. You need to get those cookies that are used by the browser. That is, if a user through Chrome is authorized on my site, the program receives a cookie from an authorized user.

  • If your site is string id =HttpContext.Request.Cookies["id"].Value; . Well, the OWIN pipeline settings, etc. for processing cookies. But it seems that it works only for your own cookies, which you should install yourself (unsure) - alexoander
  • Did you try something in the direction of selenium? - Vadim Ovchinnikov
  • I heard about selenium. But do not tell me how to use? - Wheelys
  • @Wheelys need to download the selenium web driver to connect it as a library to the project, then download the selenium chrome driver, there is also a driver for Firefox (I haven't used the others) and run it, it will run on a specific port, you need to specify the port in the project. Connection examples in the code can be viewed on the Internet there is full of them. executeautomation.com/blog/functional-tools/… - user2455111

0