Link to home
Start Free TrialLog in
Avatar of gr8gonzo
gr8gonzoFlag for United States of America

asked on

Share cookies between IE and .NET WebBrowser control

I have a .NET app that contains a WebBrowser component. If I navigate to a page in the regular IE browser, that page sets a regular cookie and a session cookie. I would like the .NET app's WebBrowser control to be able to read those cookies.

The cookie I'm trying to access is the session cookie for a user that has logged into an ADFS sign-in page (SAML identity provider).
Avatar of Christopher Kile
Christopher Kile
Flag of United States of America image

You should be able to get the same cookies as long as the WebBrowser control is using the same directories as the regular browser (which would be the case if you are using IE).  Do you have evidence that you are NOT able to access cookies?
Avatar of gr8gonzo

ASKER

Yes, I've performed tests and verified that the cookies are not shared / the same.
ASKER CERTIFIED SOLUTION
Avatar of gr8gonzo
gr8gonzo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Was your last comment the path to your solution?  The wording indicates you weren't sure of that when you wrote it.
I'm not 100% sure of the ability to access the Low cookie files programmatically, but that's a longer-term issue that I need to investigate. The initial question that I had was answered by the infrastructure I explained.
Self-answered.