How do people handle Dynamic Feature Modules and logging out?
For example:
• app module has User-entity
• feature1 has some entities that are tied to the User
When I log out I remove the User entity, but the data in feature1 remains. If I used User's ID as a FK in feature1's entities, the new user won't be able to access it.. However, it would be nice to completely clean out the old data on logout.
Maybe have some cleanup task that runs in feature1 when it is loaded to memory? Thoughts?