Click here to Skip to main content
15,887,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have 1 user under which 3 services are there, with out logging out if I am trying to open ui again
I have a option to login with different user. After clicking i am able to login as a second user but data is showing for the 1st user.
It is not refreshing properly even after sign in as a different user.

What I have tried:

Below is the piece of code:

<script type="text/javascript" >
if (localStorage.getItem("AG_SP_USER_TEMP") != null ) {
localStorage.setItem("AG_SP_USER",localStorage.getItem("AG_SP_USER_TEMP"));
localStorage.removeItem("AG_SP_USER_TEMP");
}
</script>

Here, based on the user we are getting data then removing . Can you please tell what supposed to do so that refresh happens properly.
Posted
Comments
Sergey Alexandrovich Kryukov 24-Jun-16 9:48am    
You did not show any relevant code, no handling of those click, redirection, nothing.
You only manipulate localStorage, which does not update anything. By the way, why not sessionStorage?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900