TokenToSeaSkills Hub
中文 Console

Migrating Mvc Session State

MicrosoftOfficial

Migrates ASP.NET Framework session state, TempData, and application state to ASP.NET Core equivalents. Converts HttpSessionState to ISession with distributed cache backend, migrates TempData from session-based to cookie-based provider, and replaces HttpContext.Application and HttpRuntime.Cache with DI-based IMemoryCache or IDistributedCache.

Install

npx skills add microsoft/upgrade-agent-plugins --skill migrating-mvc-session-state