Building session management for leaving and returning to the app