Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to get session value in _Layout view?

$
0
0

As title, anyone can help how to access session in _Layout view? Do I need to add DI? like this @inject Microsoft.AspNetCore.Http.IHttpContextAccessor HttpContextAccessor ?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>