Obtenez du contenu de session sur cshtml
@using Microsoft.AspNetCore.Http
@{
var x = Context.Session.GetString("Some Key");
}
Old-fashioned Okapi
@using Microsoft.AspNetCore.Http
@{
var x = Context.Session.GetString("Some Key");
}