I'm trying to create a login in which after validating that the username and password are correct create in the sessionStorage the following variable:
sessionStorage.setItem('ClienteId', resp.ClienteId);
Doing so when entering each page I check before the client exists in the session, but when changing the tab I lose the same. Would you like to work without losing it?
Or some better way to login? Thank you in advance.