First to update your visual studio by using visual studio installer. I am currently working in this version of visual studio . Get the current version of visual. I use session in this version , and session have work perfectly.
Now you can use session , watch this video and learn more about session.
1. First to Add the Microsoft.AspNetCore.Session NuGet package to your project.
Now you can use session , watch this video and learn more about session.