Sessions and Application States in ASP.NET Core
https://docs.microsoft.com/ja-jp/aspnet/core/fundamentals/app-state?view=aspnetcore-2.2
Sample Source
https://github.com/aspnet/Docs/tree/master/aspnetcore/fundamentals/app-state/samples/2.x/SessionSample
The above tutorials and sample sources are referenced, but the session will not be activated.
·Session values are not maintained across requests
·Cookie does not have a session ID
The same is true if you run the sample source as it is.
Is there something missing?
I don't know why, but
You can now use the session by commenting out the following lines:
Startup.cs
options.CheckConsentNeeded=context=>true;
© 2024 OneMinuteCode. All rights reserved.