Click here to Skip to main content
12,395,310 members (62,803 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB VB.NET
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 7-Aug-12 2:17am
kingsoh365
Updated 16-Nov-12 23:43pm
v2
Comments
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.
--SA

1 solution

Rate this: bad
 
good
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.[^]
  Permalink  

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


Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 17 Nov 2012
Copyright © CodeProject, 1999-2016
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