Storing sessionId in app preferences