I am migrating an ASP.NET MVC application (on .NET 4.8) to .NET 8. Not the idea is that the MVC stays for the time as the view layer and everything is moved to a .NET 8 REST API.
With moving to .NET Core 8, the session is moved, too. In the ASP.NET MVC application, I still need the session, because some data is retrieved from it.
Is there some common way to do this, to be able to access the ASP.NET Core state in the ASP.NET MVC application?
If not how can I register a custom state provider in the ASP.NET MVC application?
Here is official information for how to setup and use sessions in ASP.NET Core.
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/app-state?view=aspnetcore-8.0#configure-session-state
Here is an article from C# Corner
https://www.c-sharpcorner.com/article/how-to-use-session-in-asp-net-core/
1