In this post, I want to look at sessions in ASP.NET Core. A session is how the server remembers who you are between two requests. If someone steals it, they are you.
I will show the cookie flags, the session ID change at login, timeouts and logout, with code you can use. The code targets ASP.NET Core (.NET 6 and later, minimal hosting in Program.cs). The…




