1. A method for transforming a stateful computer application to a stateless application to facilitate scaling to a large number of concurrent users of the computer system, comprising: generating, by a processor executing a computer application, a session identification for a user session for each user of a plurality of users of the computer application; retrieving cookies related to the user from the plurality of users from an external storage using the session identification; restoring, by the processor, a user context for the user from the plurality of users of the computer application by using the retrieved cookies; calling functional computing logic based on the restored user context; assembling a state representation subset of the user context according to data in a database; upon completion of functions performed by the computer application functional computing logic, storing the user context and the assembled state representation as a cookie for each of the plurality of users in external storage, wherein the session ID is a primary key; and generating HTML code by a user interface for the user based on the assembled state representation, user context, and data from the accessed database.