Hi
we have deployed our Prod in premium p2 v2 earlier (which is shared along with our UAT environment) and now we decided to move our same code to isolated Azure environment but this impersonate API is (this._accountService.impersonate) failing giving token expired error but after 1-2 Page refresh same token starts working. we did not faced this issue earlier on our previous environment we have tried to extend token time to 10 min but still failing initially on every login. let us know if any solution available.
6 Answer(s)
-
0
Hi @omkarchoudhari
Are you using memory cache or redis for your app ?
-
0
Hi
we are using Memory Cache provided by framework
-
0
Hi,
Is your app running as 1 instance or multiple instances ? If it is multiple instances, you need to use Redis instead of Memory cache.
Thanks,
-
0
Thank you.... it worked after using redis
-
0
-
0
Hi,
You need to follow https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Clustered-Environment#scaling-signalr and scale your SignalR using Redis.