xnet

How do I save cookies from a website in a separate file and use them only in the future?

When you log in to the site, cookies are issued, and each time you run the program, this very authorization is performed. So, ... unt; i++) { write.Write(req.Cookies.Keys.ElementAt(i) + ": " + req.Cookies.Values.ElementAt(i) + Environment.NewLine); }