Results 1 to 11 of 11

Thread: [RESOLVED] Login in to Sever VB6

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2004
    Posts
    13

    Resolved [RESOLVED] Login in to Sever VB6

    I'm writing a program that you have to login to for it to load up... What I want to do is somehow login via the program to my site without using MySQL connection from VB... I'm new to PHP and all I have at the moment is from this tutorial http://www.phpeasystep.com/workshopview.php?id=6 ... Thanks in advance and sorry for the little info. If you need more just ask please.

    -dustin
    Last edited by Dustcrazy; Nov 30th, 2007 at 08:06 PM. Reason: Resolved

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Login in to Sever VB6

    Color me confused.

    Do you wish to accomplish this login using PHP or using VB6?

  3. #3
    Member
    Join Date
    Apr 2007
    Location
    Kurdistan, Slemani
    Posts
    43

    Re: Login in to Sever VB6

    I've read it over and over again and I can't understand what you are trying to accomplish.
    You want to create a program and want the user to login via your program to access the website?

  4. #4

    Thread Starter
    New Member
    Join Date
    Sep 2004
    Posts
    13

    Re: Login in to Sever VB6

    I want the program to login to the mysql database. So when the user logins the program can get there info and use it inside the program. I though the best way would be somehow via a PHP script or something, since I don't want to hardcode my server's mySQL database info.

  5. #5
    Member
    Join Date
    Apr 2007
    Location
    Kurdistan, Slemani
    Posts
    43

    Re: Login in to Sever VB6

    Aha, but that would not be safe at all. Just by tracking the software, users can find out where to send and get information to your website through your program. But I understand what you are trying to accomplish.
    Using winsock will do the work, read more about that.

  6. #6

    Thread Starter
    New Member
    Join Date
    Sep 2004
    Posts
    13

    Re: Login in to Sever VB6

    Quote Originally Posted by Kurdistan
    Aha, but that would not be safe at all. Just by tracking the software, users can find out where to send and get information to your website through your program. But I understand what you are trying to accomplish.
    Using winsock will do the work, read more about that.
    Can you give me so more advice? I've got so far as getting winsock to send POST of the username and password which I have change the PHP script alittle to respond "Correct" if the login is correct. But theres many problems with this, so what are so of your other suggestions/advice?
    Last edited by Dustcrazy; Nov 28th, 2007 at 08:35 PM.

  7. #7
    Member
    Join Date
    Apr 2007
    Location
    Kurdistan, Slemani
    Posts
    43

    Re: Login in to Sever VB6

    Quote Originally Posted by Dustcrazy
    But theres many problems with this
    What kind of problems do you get?

    I understand more now what you are trying to create.
    And I think it´s just that simple as you describe.
    When the php responds that the login what correct, let the program know that the user is logged in, like "isLoggedIn=true" (and this should be on top of every code that is running in the program, and send the current sessionnumber to the site and check if it is correct, read more about this below).
    Also create a random number (by your program) as session that should be sent with the login information. So that you store that sessionnumber with the password and username in your database. And dont forget that when the user closes the program, it should send to the website that it is closed. And next time you login, a new sessionnumber will be created and sent to the site.
    Set a timer like each 5 minute, that will connect to the site to check if the current sessionnumber is correct with the one in the database. This will not allow another user to connect with the same username and password.

    Could you tell me more about your program? So it'll be easier to help.

  8. #8

    Thread Starter
    New Member
    Join Date
    Sep 2004
    Posts
    13

    Re: Login in to Sever VB6

    I'm working really hard on this so I really don't want to say. I know it sounds realy stupid since I'm asking for help..... But its really similar on how Steam, by Value the game company.

  9. #9

    Thread Starter
    New Member
    Join Date
    Sep 2004
    Posts
    13

    Re: Login in to Sever VB6

    Well last night I decided to finnaily move over to dot net... I readed some where that it has built in support for MySQL access and wondering if this was safe and secure...

  10. #10
    Member
    Join Date
    Apr 2007
    Location
    Kurdistan, Slemani
    Posts
    43

    Re: Login in to Sever VB6

    dot net is secure.

    Actually, my first though was Steam.
    It's not hard at all. Reading some more about VB6 will get you where you want.
    And PHP aswell.

  11. #11

    Thread Starter
    New Member
    Join Date
    Sep 2004
    Posts
    13

    Re: Login in to Sever VB6

    Kurdistan - Thanks alot

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