Autologin MySql
#2

Why don't you save the IP when the person logs in, instead of when the person registers?

Person logs in with IP 11.22.33.44. IP 11.22.33.44 is saved in database bound to their user id or whatever.
Person disconnects, comes back the next day. Get their IP and if it matches up to the saved IP (in this case "11.22.33.44"), log them in automatically.
If person's IP is different (e.g. now it's 22.33.44.55), it saves, and they will have to login manually.
If person reconnects and their IP is still 22.33.44.55, automatic login again.

You can use the function GetPlayerIp.
Reply


Messages In This Thread
Autologin MySql - by Face9000 - 23.09.2015, 20:32
Re: Autologin MySql - by PrivatioBoni - 23.09.2015, 21:00
Re: Autologin MySql - by Face9000 - 23.09.2015, 21:10
Re: Autologin MySql - by PrivatioBoni - 23.09.2015, 21:41

Forum Jump:


Users browsing this thread: 1 Guest(s)