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
would be a lot easier to use Razor code in your page.
in my example, i needed to set a hidden field with a session variable.
$('#clearFormButton').click(function(){
ResetForm();
$('#hiddenJobId').val(@Session["jobid"]);
});
that easy. remember, you need to preface the Session with a @ sign for razor syntax.