This demonstrates persisting user settings in an embedded iframe application. The user identity is set in the host application and passed to the iframe in a cookie.
Choose the identity to store in the cookie passed to the iframe. Each identity's settings are stored separately.