botman / web-widget

MIT License
39 stars 69 forks source link

Save userId in cookie #10

Closed feralheart closed 6 years ago

feralheart commented 6 years ago

Right now if we don't add an userId, the JS generates one randomly when he/she opens the window. This means when the user refreshes the page, or navigates to an another he/she gets a new one. In a future update it would be wise if we could save in a cookie.

sschlein commented 6 years ago

Hi, that's on purpose. The widget is build for extending and in many use cases it makes sense to handle the user id within the application and don't generate one on the client side.