Episode
Using System.Web Adapters to Share Session State in ASP.NET Upgrade Scenarios [11 of 18] Migrating from ASP.NET to ASP.NET Core
with Mike Rousos
In this video, Mike uses System.Web adapters to share session state between an original ASP.NET app and a new ASP.NET Core app that he is incrementally migrating the endpoints to from the original app. Using this shared session solution, session state is preserved even if users hit some endpoints in the old app and some in the new app.
Chapters
- 00:00 - Intro
- 01:25 - Using System.Web.Adapters in views
- 03:00 - Options for sharing session state between projects
- 04:40 - Configuring session sharing using System.Web.Adapters
- 11:30 - Configuring session serialization
- 13:10 - Configuring session sharing in controllers and views
- 16:20 - Migrating additional controllers after session sharing is configured
- 18:50 - Showing side-by-side session data sharing
Recommended resources
- Get the code on GitHub
- Migrating ASP.NET to ASP.NET Core
- .NET Upgrade Planner
- .NET Upgrade Assistant (VS Extension)
- .NET Upgrade Assistant (command line)
- System.Web Adapters
- Get your questions answered on the Microsoft Q&A for .NET
- Learn C#, F#, and .NET with free self-guided learning from Microsoft Learn
Related episodes
Connect
In this video, Mike uses System.Web adapters to share session state between an original ASP.NET app and a new ASP.NET Core app that he is incrementally migrating the endpoints to from the original app. Using this shared session solution, session state is preserved even if users hit some endpoints in the old app and some in the new app.
Chapters
- 00:00 - Intro
- 01:25 - Using System.Web.Adapters in views
- 03:00 - Options for sharing session state between projects
- 04:40 - Configuring session sharing using System.Web.Adapters
- 11:30 - Configuring session serialization
- 13:10 - Configuring session sharing in controllers and views
- 16:20 - Migrating additional controllers after session sharing is configured
- 18:50 - Showing side-by-side session data sharing
Recommended resources
- Get the code on GitHub
- Migrating ASP.NET to ASP.NET Core
- .NET Upgrade Planner
- .NET Upgrade Assistant (VS Extension)
- .NET Upgrade Assistant (command line)
- System.Web Adapters
- Get your questions answered on the Microsoft Q&A for .NET
- Learn C#, F#, and .NET with free self-guided learning from Microsoft Learn
Related episodes
Connect
Have feedback? Submit an issue here.