I want to send some information along with every AJAX request to server side from my JavaScript application (it could be vanilla JS, JQuery, or any SPA based framework). We are using JQuery to make AJAX calls. I do not want to use QueryString or Headers to send information to server. I want to keep this information abstract from user. I was thinking of cookie but cookie created on client side using JavaScript is not available on the server side. I also want to destroy this information once browser is closed (meaning this information is session specific).
On the server side, we are using ASP.NET WPI (C#)
What is the way to achieve this?