WebBrowser control question

Posted on 2011-10-13
Last Modified: 2012-05-12
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?
Question by:vbMarkO
    LVL 83

    Expert Comment

    >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.
    LVL 6

    Expert Comment

    Security wise, I do not recommend to use authentication cookies that do not expire.

    Author Comment

    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?
    LVL 83

    Accepted Solution

    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.

    Author Closing Comment

    Not to familiar with console applications but this code helped me a lot

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Article by: jpaulino
    XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String ( Literal, only instead of starting and ending with w…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now