-
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?
-
Write the password to the property bag, then read the password property on form load.
André
-
You could write to the registry using SaveSetting and then retrieve it using the GetSetting function
-
i didn't understand what property bag is
and how do i use it
-
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.