Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Best security practices with regard to clearing model data between logins

$
0
0

@timmyomahony wrote:

Hey,

What the best practices with regard to handling multiple users on the same machine? Is it simply a case of clearing the model data on logout using

this.store.unloadAll();

The obvious issue here is that the user might not actually logout, they might just leave their machine, so it’s probably better to do this on login, before anything is fetched from the store.

There are actually a couple of suggestions in this Ember Igniter post:

A quick search will return many different workarounds, like iterating over the defined models and unloading by type, resetting the app with App.reset() or going nuclear and destroying the whole store.

So I’d be interested to hear the steps other people are taking here as it’s an important point.

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles