I'm working in ASP.NET Core 6 and what I am trying to do is: set my list to session then get session info. But although there is no problem when setting it to session. When I try to get from session with GetString, it always returns null.
ConfigureServicesinStartup.cs:
ConfigureinStartup.cs:
UserRepository.cs:
- Code block in the
UserService.csthat I set session and then try to get:



