Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
I want to create a user secure login application to authenticate users to my application. My question is creating it using database or in XML, which one is the best method to use? How can i go about this?
Thanks
Posted
Updated 16-Nov-12 23:43pm
v2
Comments
[no name] 7-Aug-12 8:29am    
The "best"? The best method is the one that fills your requirements. Based on the zero amount of information that you have provided, if you have 1 or 2 users then go XML. If you have 2500000 users then use a database.
Sergey Alexandrovich Kryukov 7-Aug-12 15:11pm    
OP should understand that your advice is very approximate. If you have 15 users but 2500000 of, well, something else, it won't hurt to add those users to the database as well... :-)
Of course, the question is not correct, hardly could be answered much better.
--SA

1 solution

Where you store them is a lot less important than what you store: If you are comfortable with XML, then use that. If you are happy with a database, (and you won't have to install SQL Server with each installation of your application) than use a database.

Much more improtant is to store the correct information - not a password, but a hash of the password. Have a look here, it might give you some ideas: Password Storage: How to do it.[^]
 
Share this answer
 

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