|
-
Apr 1st, 2010, 06:28 AM
#1
Thread Starter
Member
-
Apr 1st, 2010, 06:34 AM
#2
Re: WebBrowser remember me
Website cookies do that, not the browser control.
-
Apr 1st, 2010, 06:49 AM
#3
Thread Starter
Member
Re: WebBrowser remember me
I know that, but how can I enable them for my browser?
-
Apr 1st, 2010, 06:58 AM
#4
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.
-
Apr 1st, 2010, 07:19 AM
#5
Thread Starter
Member
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.
-
Apr 1st, 2010, 09:00 AM
#6
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?? 
-
Apr 1st, 2010, 09:47 AM
#7
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,...
-
Apr 1st, 2010, 04:25 PM
#8
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?? 
-
Apr 1st, 2010, 08:45 PM
#9
Re: WebBrowser remember me
 Originally Posted by CDRIVE
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,...
-
Apr 1st, 2010, 08:51 PM
#10
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.
-
Apr 1st, 2010, 09:09 PM
#11
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,...
-
Apr 2nd, 2010, 08:18 AM
#12
Re: WebBrowser remember me
 Originally Posted by akhileshbc
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?? 
-
Apr 2nd, 2010, 08:27 AM
#13
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,...
-
Apr 2nd, 2010, 08:31 AM
#14
Re: WebBrowser remember me
 Originally Posted by akhileshbc
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.
-
Apr 2nd, 2010, 08:34 AM
#15
Thread Starter
Member
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)
-
Apr 2nd, 2010, 08:46 AM
#16
Re: WebBrowser remember me
 Originally Posted by ts96
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,...
-
Apr 2nd, 2010, 08:55 AM
#17
Thread Starter
Member
Re: WebBrowser remember me
I mean that the webbrowser won't remember my password after I log out.
-
Apr 2nd, 2010, 08:55 AM
#18
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.
-
Apr 2nd, 2010, 04:29 PM
#19
Re: WebBrowser remember me
 Originally Posted by ts96
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?? 
-
Apr 3rd, 2010, 02:49 AM
#20
Thread Starter
Member
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!!!
-
Apr 3rd, 2010, 02:55 AM
#21
Re: WebBrowser remember me
 Originally Posted by ts96
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,...
-
Apr 3rd, 2010, 03:23 AM
#22
Thread Starter
Member
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
-
Apr 3rd, 2010, 05:23 AM
#23
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,...
-
Apr 3rd, 2010, 03:39 PM
#24
Re: WebBrowser remember me
Install Roboform in your browser (it works in IE and Firefox and maybe others).
-
Apr 4th, 2010, 06:14 AM
#25
Thread Starter
Member
Re: WebBrowser remember me
I installed roboform but how can I make it work with the webbrowser control? :P
-
Apr 4th, 2010, 09:56 AM
#26
Re: WebBrowser remember me
 Originally Posted by ts96
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.
-
Apr 4th, 2010, 02:12 PM
#27
Thread Starter
Member
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!
-
Apr 9th, 2010, 05:45 AM
#28
Thread Starter
Member
Re: WebBrowser remember me
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.
-
Apr 9th, 2010, 12:16 PM
#29
Re: WebBrowser remember me
 Originally Posted by ts96
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.
I didn't know you could do that; thanks for sharing.
-
Apr 9th, 2010, 12:28 PM
#30
Thread Starter
Member
Re: [RESOLVED] WebBrowser remember me
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|