How can I post a checkbox value to a controller that saves value to session?

I have the following code on checkbox click to get the checkbox value of the checkbox showHideDeletedRps and pass true or false to a controller var rpInfo = await rpService.GetRPByID(id, showDeleted);, I tried the following but it doesn’t keep the selected value or doesn’t update on checkbox change.

Losing Session State

I have an ASP.net application where Users aren’t able to successfully complete certain actions, for reasons, I’m assuming, can only be related to losing their session (which is where I maintain their current user information, and how determine whether they are logged in)

Keeping ASP.NET Session Open / Alive

Which is the easiest and most unobstrusive way to keep an ASP.NET session alive as long as the user has the browser window open? Is it timed AJAX calls? I want to prevent the following: sometimes users keep their window open for a long time, then enter stuff, and on submit nothing works anymore because the server side session expired. I don’t want to increase the timeout value for more than 10 min on the server as I want closed sessions (by closing the browser window) to time out fast.