I have a scenario where I open my web application in a browser but in two separate tabs.
In one tab I signed out from the application and as a result the all session val
Another approach is in your chtml
and the script is
var sessionValue= $("#hdnSession").data('value');
or you may access directly by
jQuery(document).ready(function ($) { var value = '@Request.RequestContext.HttpContext.Session["someKey"]'; });