Hello,
I have an website system where a user can create an account and login.
On this website i show some basic details about an user, like their user id and coins.
This information is taken from an mysql database, wich all works fine.
Now i want the users to be able to play the game while they are logged in on my website and i want to check in the game project wich user id is logged in so i can use that id to fetch user info inside the game about the user.
Is there an easy way to do this?
Because on the website, when an user is logged in, i can fetch some information like their userid through a query and show it on the page with $_SESSION['id'].
But i cant seem to get this userid from my website in construct.
Anybody who can help?
Thanks for reading!
// edit
i only need to know wich id the user is logged in with on this website, so i can get the rest from the database.