1 registered members (PeroPero),
862
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: How to: Login
[Re: alibaba]
#389355
12/13/11 11:26
12/13/11 11:26
|
Joined: Oct 2007
Posts: 5,210 Ä°stanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
|
You basically need a login server and a database. User enters username/password, client sends these to the login server, then login server checks if username exists in db. if it does, server checks if password in db matches with the password the user entered. If it does, you log your user in, if it does not you show a warning. more info here: http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=189253&page=2not %100 correct, but it should give you some ideas.
Last edited by Quad; 12/13/11 11:30.
3333333333
|
|
|
Re: How to: Login
[Re: alibaba]
#389358
12/13/11 11:31
12/13/11 11:31
|
Joined: Oct 2007
Posts: 5,210 Ä°stanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
|
no you wont, if you do not want to. login server can still be written in gamestudio.
In fact you don't even need a mature database solution. That's only the best practical way to do that.
Last edited by Quad; 12/13/11 11:33.
3333333333
|
|
|
Re: How to: Login
[Re: alibaba]
#389361
12/13/11 11:34
12/13/11 11:34
|
Joined: Oct 2007
Posts: 5,210 Ä°stanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
|
Yup. I just added to the message above.
As i added there, a db solution like mysql handles security and scalability for you. In a real world scenario you need security and stability, so a db comes in handy.
3333333333
|
|
|
Re: How to: Login
[Re: Quad]
#389362
12/13/11 11:38
12/13/11 11:38
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
Expert
|
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
and a database in mysql can me as large as you want, cause you can handle and request each item/id/Username/Password..etc by simple htp_post request to a php script ^^
Textfiles are unsecure and as far as i remember, the readout lenght is limited..
Last edited by Espér; 12/13/11 11:39.
|
|
|
Re: How to: Login
[Re: SchokoKeks]
#389404
12/13/11 21:43
12/13/11 21:43
|
Joined: May 2008
Posts: 2,113 NRW/Germany
alibaba
OP
Expert
|
OP
Expert
Joined: May 2008
Posts: 2,113
NRW/Germany
|
Thanks you for your kind help people! I read the whole day about login and password security and so on. And now it isn´t that hard now My only question now is, how can gamestudio get the data?
|
|
|
Re: How to: Login
[Re: alibaba]
#389408
12/13/11 22:09
12/13/11 22:09
|
Joined: Oct 2007
Posts: 5,210 Ä°stanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
|
mysql plugin, note that you connect to db only from the server and not the clients.
If you are using files instead of db it's standart file / read write operation.
If you are asking how it's suuposed get login details from clients, it's standart gs multiplayer mechanism.
3333333333
|
|
|
|