Can somebody tell me how to make my webbrowser remember any password and username the user enters? :confused::confused::confused:
Printable View
Can somebody tell me how to make my webbrowser remember any password and username the user enters? :confused::confused::confused:
Website cookies do that, not the browser control.
I know that, but how can I enable them for my browser?
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.
Thanks for your reply, but this didn't work. For example, IE remembers my password for Facebook, but my browser doesn't.
What version of IE are you using? If I navigate to VB Forums with the WB control it knows 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. :)
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) :wave:
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.
Internet Explorer: http://www.mediacollege.com/microsof...ocomplete.html .... For IE7: Link
Firefox: http://www.mozilla.com/en-US/firefox...ssword-manager
..:wave:
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).
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)
I mean that the webbrowser won't remember my password after I log out.
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.
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. :wave:
I try to save and get settings to the registry. Here is what I have done so far:
And to save usernames and passwords I use this:Code:WebBrowser1.Document.All("userID").Value = GetSetting(URL, "Us", "") 'username
WebBrowser1.Document.All("pass").Value = GetSetting(URL, "Pass", "") 'password
WebBrowser1.Document.All("login").Click
Code:SaveSetting URL, "Us", "", WebBrowser1.Document.All("userID").Value
SaveSetting URL, "Pass", "", WebBrowser1.Document.All("pass").Value
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. :wave:
Install Roboform in your browser (it works in IE and Firefox and maybe others).
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.
I want my app to remember the passwords because this do other browsers(ie,firefox). Anyway thank you all for your support!
I have found a simple solution using Roboform.dll. Here is an example:
vb Code:
Dim FillForm As New ROBOFORMLib.FormFiller FillForm.FillForms WebBrowser1.Document
Thanks to MartinLiss and others who helped me.
You'r welcome. :wave::wave::wave: