+ 2

Client VS Server instance

Lets say I have a website and a user has a certain amount of virtual credits. Where is the user’s balance from the user’s perspective? If the user, for example, opened a client-side viewer like inspect element, would the balance be on the client, server, or both?

23rd Jan 2018, 12:59 AM
privrax.
privrax. - avatar
1 Resposta
+ 6
On server. This data must be hidden from user, as the code which returns it. Client-side *asks* server to get this data and only *outputs* the result
23rd Jan 2018, 7:24 AM
Freezemage
Freezemage - avatar