I have been trying to pass the ISession from my ControllerBase to an underlying library.
I have a Class library, where I'd like to use the Session.
While the ControllerBase uses Microsoft.AspNetCore.Http, then when using the Session in my class, as ISession, then it wants to install a nuget package Microsoft.AspNetCore.Http.Features. This however this is another ISession, which e.g. lacks Get/SetString, I can only use Set/Get which works on byte arrays. How do I get this right?
Another thing, I have 2 controllers - will they have the same session?
To me it looks like session data are lost when I use the other controller. Once I make a call to the other and back to the first, then my session data seem lost.