I am creating an app where non logged in users can draw wood plates. First I tried the artwells/meteor-accounts-guest package and it works fine. But then I remembered that the server broke a connection after a given time and meteor made a reconnect. After the reconnect the same user got a new userid and all user inputs and data lost on the screen.
Now I want to try the following way without the artwells package. If the user go on my page without login, he get a random id which will be stored in a persistent session. All data which is created by the current user, will be stored according to the id from the persistent session. If the server break the connection, the created id will stay inside the persistent session and the user continue without loosing the data.
My question is, is this a good way? If yes, do anyone know how can I create a random id. If not, please tell me a better way to solve my issue.
P.S: please forgive me for the bad english.