swimlane / angular1-systemjs-seed

AngularJS 1.x + SystemJS Seed
MIT License
211 stars 40 forks source link

Clear cache on logout #55

Closed zeeshanjan82 closed 8 years ago

zeeshanjan82 commented 8 years ago

I am facing some issues when I implement logout feature. Currently I am just clearing some session data which I maintain myself and then redirect user to the login state, however I have noticed as I am using socket.io when the socket.io event is fired even when I am logged out still I am able to receive that event because the data persists inside the services even when we have logged out. Is there any recommended way to implement logout feature in the seed? I think it might be related to templateCache which needs to be cleared when we are logging out?

amcdnl commented 8 years ago

Logout highly depends on implementation.