You are building the User Preferences page of an application. A user can change values, such as his or her name, password, address, company, and so on.
These values are sent to a CDI backing bean via AJAX when the user tabs out of each field. However, the values must be retained in the CDI bean and stored in the database only when the user clicks the Save button.
Which two scopes will allow your CDI bean to retain its state while the user is interacting with the User Preferences page? (Choose two.)