WebBrowser control question

I am making a media app that manages all my media ... but I am also building a browser on board instead of calling for default browser ... but my question is about the browser (webBrowser control)

I dont like having to sign into my sites ... can I make my browser accept cookies or somehow keep the info so I dont have to sign in each time. Like my Netflix, hulu and such like accounts?
Who is Participating?
CodeCruiserConnect With a Mentor Commented:
Here is an example


When you send a HTTPWebRequest to the login page, if the login is successful, cookiecontainer will have the authentication cookie. This container can then be used with subsequent requests.
>Like my Netflix, hulu and such like accounts?

You can save and reuse cookies but the duration for which the cookie will be useful depends on the website. You can create an authentication cookie which does not expire. Then pass it along with all the subsequent requests.
Security wise, I do not recommend to use authentication cookies that do not expire.
vbMarkOAuthor Commented:
oK, save the cookie

How do I do this ... I navigate to my site ... now how do I make it so when it opens one of my above named sites it will keep the log in info cookie so I can open it next time without logging in?

What or where would a code example be for something like this?
vbMarkOAuthor Commented:
Not to familiar with console applications but this code helped me a lot
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.