Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
My application is similar to dropbox application. in which, after installing application and then it should ask for username/password
and whenever user starts my application it should not ask username/password everytime similar to dropbox.

ALSO dropbox has a feature, unlink this computer, I want to know how to do that in my C# desktop application.

Please suggest where to save login in local machine so it should not ask user everytime and add link/unlink to computer functionality
Posted
Comments
Prasad Khandekar 7-Jun-13 7:10am    
You can store the user's credentials in registry. Make sure that you store them in an encrypted form. This (http://weblogs.asp.net/jgalloway/archive/2008/04/13/encrypting-passwords-in-a-net-app-config-file.aspx) article will be useful for understanding this.

Link/Unlink behavior can simply be based on a flag. As long as this flag value is set your application can assume that the computer in question is still linked with your remote server and has to perform the synchronization whenever required.

I am assuming that when your are saying DropBox like means you have your own remote server + storage application jsut like dropbox.

Regards,
prisoft 7-Jun-13 7:46am    
Thanks, but is there any other option then registry. while adding registry I am getting permission error and the same problem can be face by end users of my application. also I am getting confused that how to set/save flag and recognize the machine. shall I create a text file and save it locally?
Prasad Khandekar 7-Jun-13 7:50am    
The link mentioned shows a away to store in app.config.
prisoft 7-Jun-13 7:57am    
ok it will work like this:
1. user installs my application
2. enter registers with username/password
3. I will save these credential in app.config
4. I will save machine info as well here.
5. if user change password I will edit app.config again. am going to try it.

Thanks again.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900