|
-
Nov 25th, 2007, 10:03 PM
#1
Thread Starter
New Member
[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
-
Nov 26th, 2007, 08:40 AM
#2
Re: Login in to Sever VB6
Color me confused. 
Do you wish to accomplish this login using PHP or using VB6?
-
Nov 26th, 2007, 11:13 AM
#3
Member
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?
-
Nov 26th, 2007, 06:08 PM
#4
Thread Starter
New Member
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.
-
Nov 27th, 2007, 02:15 AM
#5
Member
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.
-
Nov 28th, 2007, 08:23 PM
#6
Thread Starter
New Member
Re: Login in to Sever VB6
 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.
-
Nov 29th, 2007, 04:52 AM
#7
Member
Re: Login in to Sever VB6
 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.
-
Nov 29th, 2007, 06:24 PM
#8
Thread Starter
New Member
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.
-
Nov 30th, 2007, 02:07 PM
#9
Thread Starter
New Member
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...
-
Nov 30th, 2007, 06:39 PM
#10
Member
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.
-
Nov 30th, 2007, 08:05 PM
#11
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|