Results 1 to 2 of 2

Thread: server side username and password validation?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 1999
    Location
    Davenport, IA 52804
    Posts
    30
    Hi again,

    I am making an internet application,

    commands between the server and client are numbered so the server knows what to do with the information being received.

    example

    CLIENT: Hello server, my username is vwiley2001
    would be sent to the server like this:
    102 vwiley2001

    SERVER: Hello vwiley2001, go ahead with your password, would be sent to the client like this:
    110 vwiley2001

    CLIENT: Hello server, my password is "something"
    would be sent to the server like this
    115 something

    Right now the servers response to the password is, who the heck are you?

    I need to find a way to let the server know that
    winsock(5) is vwiley2001
    or winsock(2) is compguy121

    so when winsock(5) sends back "115 something" the server knows to check vwiley2001's password to the password that is stored on the server for that username.

    Any idea's would be more than helpful!!!

    Vince Wiley

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Aug 1999
    Location
    Davenport, IA 52804
    Posts
    30

    Figured it out on my own

    Hi,

    I figured it out. Here's what I am doing.....

    when I send a command from the client to the server there is 3 parts to it.

    First the command
    Then the username which it come from
    then the message or password

    example

    winsock.senddata "110" & "~" & combo1 & "~" & txtPass.txt


    Now when the server receives a command it parses it and seperates the 3 different parts of the data.

    That allows me to check the command which in this case is 110 (which stands for user validation)

    then it allows me to check if the password supplied for that username is valid.

    I've implented the function above on the client side to so it knows what to do with information received from the server.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width