How to make variables persistent in angular?

I have a problem. So, I’m creating an angular application that a user need to be validated, approved by someone and has a role. Basically I have 3 variables: isApproved, role and isValidated. Also I have a JWT token for authentication and authorization. How should I make these 3 variables persistant? I want to diplay users different pages if they are validated, or if they are only approved, or if they have only a specific role and they are validated, but not approved, and so on.
I’m thinking of storing them in local storage, but the user can change the values there. Another way that I think is that everytime a user refresh the page, to call an API that give me these 3 variables from the backend, but I don’t know if this is a good way to do that. Or is there any way of getting the values from token? Like using claims or something, and decoding the token on the client side to get the values?
Please help me if you can. Thanks and have a good day! 🙂

Persistent dynamic control in ASP.Net

<asp:Button onclick="Some_event" Text="Add TextBox" ID="id1" runat="server" /> //once clicked: <asp:TextBox ID="txt1" ……></asp:TextBox> //when clicked again: <asp:TextBox ID="txt1" ……></asp:TextBox> <asp:TextBox ID="txt2" ……></asp:TextBox> //and so on… Is there a way to create dynamic controls which will persist even after the postback? In other words, when the user clicks on the button, a new textbox will be generated … Read more

Django persistent database connection

I’m using django with apache and mod_wsgi and PostgreSQL (all on same host), and I need to handle a lot of simple dynamic page requests (hundreds per second). I faced with problem that the bottleneck is that a django don’t have persistent database connection and reconnects on each requests (that takes near 5ms).
While doing a benchmark I got that with persistent connection I can handle near 500 r/s while without I get only 50 r/s.