-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Often state is loaded from memory cache after recent session storage erase. #146
Comments
Update: I added code to fully reboot angular after logout. This was important for my app, among others, for security reasons, but also state reset, so services would not keep state from the previous login (see https://stackoverflow.com/questions/43234416/resetting-angular-2-app). |
Decided to fully reload the page upon logout, which is a good idea anyway. |
Ran into the same issue. |
Versions (please complete the following information):
Describe the bug
After I logout from my application, and verify, in Chrome's DevTools, that the session storage fields are indeed cleared as expected, some of the annotated fields (@sessionStorage) still return the previously saved value.
I changed some of those to SessionStorageService and the problem gets resolved, which indicates the bug is there only on the annotated fields.
To Reproduce
I did not create a sample.
Screenshots
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Reported previously in issue #107 by someone else, with my recent comments.
The text was updated successfully, but these errors were encountered: