We create MemoryDistributedCache instance in Statup.ConfigureServices
using
services.AddDistributedMemoryCache();
services.AddSession();
But how to access it scope of user action? E.g. administrator have changed user privileges and we should reset some sessions users data (privileges) stored there.