Client VS Server instance | Sololearn: Learn to code for FREE!

+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?

1/23/2018 12:59:09 AM

privrax.

1 Answer

New Answer

+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