You must either store them on the client side or on the server side.
For server storage, you need to send data to the server through ajax and save it in any database.
cookie, localstorage, indexeddb, websql.
:
localStorage.setItem('myPerson', JSON.stringify(userInfo));