Patent attributes
Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for switching contexts in a browser-based application. In one aspect, a system includes a browser execution module configured to receive a request to load a browser-based application with first context data, request application data and the first context data, and receive the application data and the first context data. The system includes a state machine module configured to generate a state machine to access and store context data and load the application with the first context data by storing the first context data in the state machine. The system further includes a state change module configured to intercept a request to load the application with second context data for a second application account, request the second context data, and updated the application with the second context data by storing the second context data in the state machine.