|
-
Jun 25th, 2000, 05:06 PM
#1
Thread Starter
Member
hi
i want my app to remember one (and only one) user password that he wont need to enter it every time he runs the app. (like when i want to get my email, the app knows automatically what's my password)
i dont want to use a temporary file to save his password in it.
what's the best way to do it?
-
Jun 25th, 2000, 05:12 PM
#2
Addicted Member
Write the password to the property bag, then read the password property on form load.
André
-
Jun 25th, 2000, 05:15 PM
#3
Junior Member
You could write to the registry using SaveSetting and then retrieve it using the GetSetting function
We watch in reverence as Narcissus is turned to a flower.
-
Jun 25th, 2000, 05:18 PM
#4
Thread Starter
Member
i didn't understand what property bag is
and how do i use it
-
Jun 25th, 2000, 06:33 PM
#5
Addicted Member
I think you have to create a password object before you can make use of a property bag.
Storing in the registry might be sufficient, it will put the password in HKEY_CURRENT_USER so NT will save it on the network for you, hence it will also work when you login on a different workstation. You need to encrypt your password before writing it to the registry and decrypt it after reading, but that goes without saying.
Regards,
Laurens
Using VB5 Enterprise edition SP3
VB6 Enterprise edition SP5
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
|