Avatar of gr8gonzo
gr8gonzo
Flag 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).
C#.NET Programming

Avatar of undefined
Last Comment
gr8gonzo

8/22/2022 - Mon
Christopher Kile

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?
gr8gonzo

ASKER
Yes, I've performed tests and verified that the cookies are not shared / the same.
ASKER CERTIFIED SOLUTION
gr8gonzo

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Christopher Kile

Was your last comment the path to your solution?  The wording indicates you weren't sure of that when you wrote it.
Your help has saved me hundreds of hours of internet surfing.
fblack61
gr8gonzo

ASKER
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.
gr8gonzo

ASKER
Self-answered.