I’m writing a client-server program in java.
The basis is that the program presents eulas and options to the user and the user responds accordingly, moving through menus until he can get the server to provide the client with the requested item. For example, a document or file.
My question is where should I handle the state of each individual client. Should each client maintain it’s own state, should the server create threads to maintain the state of each of it’s client, or is there an even better approach?
What would be the simplest and/or most efficient method of approaching this problem?
I would assign each client an ID (for instance, a session ID) and track the state on the server. This would make it harder, I think, to game the system (under the principle that the less sensitive info there is on the client side, the better.)