Click here to Skip to main content
12,952,277 members (40,938 online)
Rate this:
Please Sign up or sign in to vote.
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?
Posted 7-Aug-12 2:17am
Updated 16-Nov-12 23:43pm
Wes Aday 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.
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.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.[^]

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

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,239
CHill60 3,490
Maciej Los 3,083
Jochen Arndt 1,975
ppolymorphe 1,880

Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 17 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100