Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, AndrewAMD), 877 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
How to: Login #389352
12/13/11 10:57
12/13/11 10:57
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Can someone explain how a login system could achieved?


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
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 Offline
Senior Expert
Quad  Offline
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=2

not %100 correct, but it should give you some ideas.

Last edited by Quad; 12/13/11 11:30.

3333333333
Re: How to: Login [Re: Quad] #389356
12/13/11 11:29
12/13/11 11:29
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
But i will need PHP isn´t it? smirk


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
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 Offline
Senior Expert
Quad  Offline
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: Quad] #389360
12/13/11 11:32
12/13/11 11:32
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
So my Database could also be basically a text file?


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
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 Offline
Senior Expert
Quad  Offline
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 Offline
Expert
Espér  Offline
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.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: How to: Login [Re: Espér] #389365
12/13/11 11:59
12/13/11 11:59
Joined: Nov 2002
Posts: 913
Berlin, Germany
S
SchokoKeks Offline
User
SchokoKeks  Offline
User
S

Joined: Nov 2002
Posts: 913
Berlin, Germany
Also, make sure you don't save the users passwords in plan text. Also, don't save them in a weak encryption with the key stored somewhere in your system.
If your server gets hacked and the passwords get released, your user will get very angry.

Instead, store and send only a (salted) hash of the passwords. Nearly every serious login systems use that.
Whenever a users logs in, he only transfers the hash of his password to the server which is compared to the hash saved there.

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 Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Thanks you for your kind help people! laugh
I read the whole day about login and password security and so on.
And now it isn´t that hard now laugh
My only question now is, how can gamestudio get the data?


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
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 Offline
Senior Expert
Quad  Offline
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
Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1