1. A method for transforming a stateful computer application to a stateless application to facilitate scaling to a large number of concurrent users of a computer system, comprising: generating, by a processor executing a computer application, a session identification (ID) for a user session in the computer system; retrieving a server side cookie related to the user session from an external storage in the computer system using the session ID; restoring, by the processor, a user context for the user session by using the retrieved server side cookie; calling functional computing logic based on the restored user context, wherein execution of the functional computing logic includes accessing an application database, which includes: storing each lock for the application database using a respective key that includes a logic unit of work identifier (LUW_ID) and a timestamp; implementing a stateless update task framework on an applications server, which further includes: queuing and maintaining update statements in a server side update task storage for a duration of the user session; executing said statements at a later point in time; 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 server side cookie in the 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.