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
- InternetSetCookie function
- WebBrowser Control Mishandling Cookies when Internet Explorer is Open
- How to Clear WebBrowser Control Cookie in C#
- Multiple WebBrower sessions / processes in one window
- c# WebRequest using WebBrowser cookie
- 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.