Asp.Net.Core 报错:Session has not been configured for this application or request

解决方案:

Startup.cs 

方法-ConfigureServices  添加代码

     services.AddDistributedMemoryCache();
            services.AddSession();

方法-Configure  添加代码

            app.UseSession();

原文地址:https://www.cnblogs.com/Linc2010/p/14484308.html