4

I have gone through many SO questions related to this – but not exactly this. I have a WebBrowser control in a Windows Forms project. Multiple instances of the application will be run from same windows server machine – with different user credentials for the website.

As we know, the web browser uses IE engine and it has session merging.

What is the best way to force the web browser control to use individual cookie folders so that each instance of the application wouldn’t mind cookie of the other application?

Note: IE8 is the browser installed on the server

REFERENCE

  1. InternetSetCookie function
  2. WebBrowser Control Mishandling Cookies when Internet Explorer is Open
  3. How to Clear WebBrowser Control Cookie in C#
  4. Multiple WebBrower sessions / processes in one window
  5. c# WebRequest using WebBrowser cookie
  6. How to delete Cookies from windows.form?

InternetSetCookie function: Cookies created by InternetSetCookie without an expiration date are stored in memory and are available only in the same process that created them. Cookies that include an expiration date are stored in the windows\cookies directory.

Vaibhav Dhoke
  • 459
  • 6
  • 14
LCJ
  • 22,196
  • 67
  • 260
  • 418
  • Possible duplicate of [Make .NET WebBrowser not to share cookies with IE or other Instances](https://stackoverflow.com/questions/18195844/make-net-webbrowser-not-to-share-cookies-with-ie-or-other-instances) – MSDN.WhiteKnight Mar 28 '18 at 05:16

0 Answers0