Answer the question
In order to leave comments, you need to log in
Name validation in web application?
There is a small web application, a game written in javascript (client side) and node js && socket.io (server side). At the moment, the username is obtained on the client side via XMLHttpRequest from the database ($_session [user_id ] looks and username is found), but the problem is that this name can be faked without any problems and, in fact, absolutely any value can be sent to the server. Any suggestions on how to get the name from the database on the server side? and you won't be able to find the string by "where user_id=?".
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question