1
ricardo created
- What is your product version : v10.0.0
- What is your product type (Angular or MVC): MVC
- What is product framework type (.net framework or .net core): .net Core
- I created custom session using claim:
created CreateAsync override in UserClaimsPrincipalFactory.cs
after login the value is correctly updated in CurrentUnidaNegocioAtivaIdOrNull in the session. But when the user makes the change via SetUnidadeNegocioAtiva, the value is not replicated to the session. Only after the second post to the server is it able to fetch the value correctly.
Is there any way for the value to be instantly updated in the session? Where can I be wrong?
2 Answer(s)
-
0
Hi,
I guess, the claims on the cookie is not updated this way. Could you try using teh code below ?
await signInManager.SignOutAsync(); await signInManager.SignInAsync(user, false);
-
0
Worked perfectly. Thank you very much for the quick feedback.