News

However, using session state in ASP.Net core is not straightforward—at least, ... To retrieve the complex object from the session, you can use the following code.
Without this code, when you first try to use Session, you'll get a message about "InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Session.ISessionStore'." As you ...