championswimmer / vuex-persist

A Vuex plugin to persist the store. (Fully Typescript enabled)
http://championswimmer.in/vuex-persist
MIT License
1.67k stars 116 forks source link

Question: Looking for a real persistent vuex sync solution #90

Closed lorro closed 5 years ago

lorro commented 5 years ago

Hi,

I'm looking for a solution for my Vue app in which I need to persist some local settings that are in my vuex store. I've tried solutions that use LocalStorage but also just tested the implementation of vuex-persist with LocalForage but it seems it isn't 100% persistent. What I mean with that is if users open their chrome settings to remove "Cookies and other site data" it removes all cookies but also the localstorage and IndexedDB for that site. I actually don't want that to happen.

Anybody know if there's solution to tackle this, and could it be achieved with this plugin perhaps?

Thanks

championswimmer commented 5 years ago

Clearing browser data will delete all local storage options.

If you want "more persistent" solutions you need to store data on your server via an API then

On Tue 18 Dec, 2018, 3:36 PM Laurent <notifications@github.com wrote:

Hi,

I'm looking for a solution for my Vue app in which I need to persist some local settings that are in my vuex store. I've tried solutions that use LocalStorage but also just tested the implementation of vuex-persist with LocalForage but it seems it isn't 100% persistent. What I mean with that is if users open their chrome settings to remove "Cookies and other site data" it removes all cookies but also the localstorage and IndexedDB for that site. I actually don't want that to happen.

Anybody know if there's solution to tackle this, and could it be achieved with this plugin perhaps?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/championswimmer/vuex-persist/issues/90, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQ_ygjgIqlRTcz3DsCrZ0c4x51IeBIdks5u6L4ggaJpZM4ZX-NA .

lorro commented 5 years ago

Mmm ok, thanks for the clarification. I already was afraid that would be the case :/ Problem is that would be also hard to achieve. What I'm actually trying to do is "register" a physical computer and make its chosen settings persistent. So the app knows which device it is next time it opens the web application.

But I also can't really uniquely identify a physical device with js or php.

championswimmer commented 5 years ago

Try looking up "ubercookie"

On Wed 19 Dec, 2018, 4:57 PM Laurent <notifications@github.com wrote:

Closed #90 https://github.com/championswimmer/vuex-persist/issues/90.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/championswimmer/vuex-persist/issues/90#event-2035417716, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQ_yuy157ZylNWJggPYRY-96acQXVyTks5u6iK0gaJpZM4ZX-NA .

lorro commented 5 years ago

Thanks for the suggestion :) Although it looks kinda promising, seems it won't be really future-proof I'm afraid.

The point of ubercookie is to demonstrate the impact of two fingerprinting techniques discovered recently, to raise awareness for these issues, and to push the browser vendors to fix them.