English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have a project where a user is able to sign up an account and be able to login to his own account..how do i do that for multi-users?

2007-03-06 02:04:55 · 4 answers · asked by nozmiat 3 in Computers & Internet Programming & Design

4 answers

You store the users login names and passwords in a database. Users signing up for new accounts get added. Users trying to login get checked to see if they are in the database. If so, then they are granted access to any account information linked to that login name.

Another way would be to write individual text files for each user but that's far less secure.

2007-03-06 02:12:18 · answer #1 · answered by rod 6 · 0 0

Create a text file with each line like:
"User Name, Password"
"User Name, Password"
"User Name, Password"
Wher User Name is the actual name and password is the password. VB Write statement formats it like that. After a user enters their info just read one line at a time from the text file until you find a match for the Username, Password. Use a loop until EOF and the Line Input statement.

Dim username, password
Open "yourtextfile.txt" For Input As #1

Do While Not EOF(1) ' Loop until end of file.
Line Input #1, username, password ' Read line into variables.
do an if statement here to see if the input from the user matches the input from the file.
Loop
Close #1

2007-03-06 02:15:58 · answer #2 · answered by Anonymous · 1 0

Your talking about authentication, the usernames and passwords will be stored in a database, however remember to not hardcode sql in your code, always use stored procedures for this. If you can't use sql, try storing the information in a remote xml file and use it to authenticate the users.

2007-03-06 02:15:19 · answer #3 · answered by sinkablehail1978 5 · 0 0

google it detective dipshit.

2007-03-06 02:13:34 · answer #4 · answered by Anonymous · 0 6

fedest.com, questions and answers