Results 1 to 30 of 30

Thread: [RESOLVED] WebBrowser remember me

  1. #1

    Thread Starter
    Member ts96's Avatar
    Join Date
    Mar 2010
    Posts
    37

    Resolved [RESOLVED] WebBrowser remember me

    Can somebody tell me how to make my webbrowser remember any password and username the user enters?

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: WebBrowser remember me

    Website cookies do that, not the browser control.

  3. #3

    Thread Starter
    Member ts96's Avatar
    Join Date
    Mar 2010
    Posts
    37

    Re: WebBrowser remember me

    I know that, but how can I enable them for my browser?

  4. #4
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: WebBrowser remember me

    Not sure, but I think the web browser control takes settings from IE. So if they are turned on in IE they should be on for your browser control too.

  5. #5

    Thread Starter
    Member ts96's Avatar
    Join Date
    Mar 2010
    Posts
    37

    Re: WebBrowser remember me

    Thanks for your reply, but this didn't work. For example, IE remembers my password for Facebook, but my browser doesn't.

  6. #6
    PowerPoster CDRIVE's Avatar
    Join Date
    Jul 2007
    Posts
    2,620

    Re: WebBrowser remember me

    What version of IE are you using? If I navigate to VB Forums with the WB control it knows me.
    <--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
    If topic has been resolved, please pull down the Thread Tools & mark it Resolved.


    Is VB consuming your life, and is that a bad thing??

  7. #7
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: WebBrowser remember me

    I think he is asking about the 'Remember my password' feature in Firefox and 'Save my password' feature in Internet Explorer.
    That is, the browser will save the username and passwords for login pages of various websites that we set and whenever that page is loaded, it will automatically fill the username and password..!

    I think it can be done only by programming it explicitly for your Webbroser control. I am not sure about that.

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  8. #8
    PowerPoster CDRIVE's Avatar
    Join Date
    Jul 2007
    Posts
    2,620

    Re: WebBrowser remember me

    Yes, I realize that. When I navigate to VB Forums with the WBC I can see Welcome CDRIVE. That tells me that VB Forums is getting my identity, including my password and login name, from my cookies folder.
    <--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
    If topic has been resolved, please pull down the Thread Tools & mark it Resolved.


    Is VB consuming your life, and is that a bad thing??

  9. #9
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: WebBrowser remember me

    Quote Originally Posted by CDRIVE View Post
    Yes, I realize that. When I navigate to VB Forums with the WBC I can see Welcome CDRIVE. That tells me that VB Forums is getting my identity, including my password and login name, from my cookies folder.
    Try logging out the page and then go for a new log in. When you enter the first character of your username or even clicking the Textbox for username, your username and password will gets automatically loaded in the username and passsword boxes ! (This will works only if you had used to save the Password for that page before - by clicking the "Remember my password" option, if you are using Firefox or the "Save password" option for Internet Explorer)

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  10. #10
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: WebBrowser remember me

    I don't remember exactly but I remember having some issues with cookies and the Web Browser control, it was either that regular IE could not 'see' (read) cookies placed with the Web Browser control, or the other way around. I'm not sure, it was some time ago. I think the issue was that one of the two kept placing cookies in a subfolder of the Cookies folder, and the other could only read the ones that were directly in the Cookies folder. Anyway, the Web Browser control is not the finest example, a lot of people are reporting a lot of different problems and strange behavior with it. Personally, I'd suggest avoiding it where ever possible.

  11. #11
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: WebBrowser remember me


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  12. #12
    PowerPoster CDRIVE's Avatar
    Join Date
    Jul 2007
    Posts
    2,620

    Re: WebBrowser remember me

    Quote Originally Posted by akhileshbc View Post
    Try logging out the page and then go for a new log in. When you enter the first character of your username or even clicking the Textbox for username, your username and password will gets automatically loaded in the username and passsword boxes ! (This will works only if you had used to save the Password for that page before - by clicking the "Remember my password" option, if you are using Firefox or the "Save password" option for Internet Explorer)
    OK, I logged out using the WBC and closed the VB app. I then ran it again, navigated to VBForums, logged in and shut the app down again. When I ran it again and navigated to the forum, it knew me.
    <--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
    If topic has been resolved, please pull down the Thread Tools & mark it Resolved.


    Is VB consuming your life, and is that a bad thing??

  13. #13
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: WebBrowser remember me

    I think you are not getting what I am trying to express !
    Watch this video: http://www.youtube.com/watch?v=lA1uNQQhLyE
    And at a position 1:00 or something, you will be able to see the feature of Firefox (ie. for saving passwords).

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  14. #14
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: WebBrowser remember me

    Quote Originally Posted by akhileshbc View Post
    I think you are not getting what I am trying to express !
    Watch this video: http://www.youtube.com/watch?v=lA1uNQQhLyE
    And at a position 1:00 or something, you will be able to see the feature of Firefox (ie. for saving passwords).
    Well, from OPs posts it's still not clear if he has a problem with cookies, or if he wants to make a password saving utility.

  15. #15

    Thread Starter
    Member ts96's Avatar
    Join Date
    Mar 2010
    Posts
    37

    Re: WebBrowser remember me

    I am using IE8. But when I login to a page and logout again, the webbrowser control doesn't "remember me". (Probably I have problems with cookies)

  16. #16
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: WebBrowser remember me

    Quote Originally Posted by ts96 View Post
    I am using IE8. But when I login to a page and logout again, the webbrowser control doesn't "remember me". (Probably I have problems with cookies)
    That's not clear to me..!
    You login first and then log out right after that. When you visit that page using your webbrowser control, you will not be recognized. Because you have successfully logged out.

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  17. #17

    Thread Starter
    Member ts96's Avatar
    Join Date
    Mar 2010
    Posts
    37

    Re: WebBrowser remember me

    I mean that the webbrowser won't remember my password after I log out.

  18. #18
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: WebBrowser remember me

    You have to make clear on the phrases you use. By log in/out do you mean open/close your application (with the webbrowser control) or really log in/out on the website you are visiting? Because if it's the second one, like akhileshbc said, the website will not remember you if you log out of it.

  19. #19
    PowerPoster CDRIVE's Avatar
    Join Date
    Jul 2007
    Posts
    2,620

    Re: WebBrowser remember me

    Quote Originally Posted by ts96 View Post
    I mean that the webbrowser won't remember my password after I log out.
    IE will save your User Name where it stores Auto-Complete information, but IE has never saved any of my Passwords. Is this what you're referring to?
    <--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
    If topic has been resolved, please pull down the Thread Tools & mark it Resolved.


    Is VB consuming your life, and is that a bad thing??

  20. #20

    Thread Starter
    Member ts96's Avatar
    Join Date
    Mar 2010
    Posts
    37

    Re: WebBrowser remember me

    When I login to a page, IE (or mozilla) asks me if I want it to remember my password for the next time I visit the page. If I select "yes" then the next time I visit that page, the username and password textboxes are automatically filled (without needing me to type in them my username and password). That's what I am trying to say. Thank you all for your time and your support.\


    P.S. Sorry for my bad English!!!

  21. #21
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: WebBrowser remember me

    Quote Originally Posted by ts96 View Post
    When I login to a page, IE (or mozilla) asks me if I want it to remember my password for the next time I visit the page. If I select "yes" then the next time I visit that page, the username and password textboxes are automatically filled (without needing me to type in them my username and password). That's what I am trying to say. Thank you all for your time and your support.\


    P.S. Sorry for my bad English!!!
    Yes.. That's what I was talking about.

    You have to do it by writing your own code for the WebBrowser control to catch all the Usernames and Passwords that the user may enter, and store it in a separate file. Later, when the user navigates to that page for logging-in, you have to check for that page's url (in your external file), so that whether there's any saved passwords for that page. If so, auto-load the username and password in the boxes.

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  22. #22

    Thread Starter
    Member ts96's Avatar
    Join Date
    Mar 2010
    Posts
    37

    Re: WebBrowser remember me

    I try to save and get settings to the registry. Here is what I have done so far:
    Code:
    WebBrowser1.Document.All("userID").Value = GetSetting(URL, "Us", "")  'username
    WebBrowser1.Document.All("pass").Value = GetSetting(URL, "Pass", "")  'password
    WebBrowser1.Document.All("login").Click
    And to save usernames and passwords I use this:
    Code:
    SaveSetting URL, "Us", "", WebBrowser1.Document.All("userID").Value
    SaveSetting URL, "Pass", "", WebBrowser1.Document.All("pass").Value

  23. #23
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: WebBrowser remember me

    My suggestion is to use an external file or a database or something. Because there will be lot of the websites that you may want to store ! You shouldn't fully depend on Registry for saving data.

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  24. #24

  25. #25

    Thread Starter
    Member ts96's Avatar
    Join Date
    Mar 2010
    Posts
    37

    Re: WebBrowser remember me

    I installed roboform but how can I make it work with the webbrowser control? :P

  26. #26
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: WebBrowser remember me

    Quote Originally Posted by ts96 View Post
    I installed roboform but how can I make it work with the webbrowser control? :P
    Well in your original post you didn't say webbrowser control, so I assumed you meant your webbrowser itself. But if were talking about the webbrowser control, and hence doing this in a program, why do you have to "remember" anything? Just hardcode the information in the program.

  27. #27

    Thread Starter
    Member ts96's Avatar
    Join Date
    Mar 2010
    Posts
    37

    Re: WebBrowser remember me

    I want my app to remember the passwords because this do other browsers(ie,firefox). Anyway thank you all for your support!

  28. #28

    Thread Starter
    Member ts96's Avatar
    Join Date
    Mar 2010
    Posts
    37

    Re: WebBrowser remember me

    I have found a simple solution using Roboform.dll. Here is an example:
    vb Code:
    1. Dim FillForm As New ROBOFORMLib.FormFiller
    2. FillForm.FillForms WebBrowser1.Document

    Thanks to MartinLiss and others who helped me.

  29. #29
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: WebBrowser remember me

    Quote Originally Posted by ts96 View Post
    I have found a simple solution using Roboform.dll. Here is an example:
    vb Code:
    1. Dim FillForm As New ROBOFORMLib.FormFiller
    2. FillForm.FillForms WebBrowser1.Document

    Thanks to MartinLiss and others who helped me.
    I didn't know you could do that; thanks for sharing.

  30. #30

    Thread Starter
    Member ts96's Avatar
    Join Date
    Mar 2010
    Posts
    37

    Thumbs up Re: [RESOLVED] WebBrowser remember me

    You'r welcome.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width