title: Using WebGrid with sortable columns, the call to the controller bypasses the Session
body: <p>In ASP.NET MVC 4, I have a multipage app that does some security checking on the first page, stores the results in a Session variable, then uses OnActionExecuting on every Controller to test the Session variable as I move from page to page.  One of the views uses a WebGrid with sortable columns.  When I click on the column header to engage the sort, I get a call to the view's default Action, but, in OnActionExecuting, the Session variable is not there.  It appears to have created a new session.  My logic then treats it as a security failure.</p>
  
  <p>I have not yet found where this click (to sort) is being handled, so that's my first issue - perhaps I could influence what is being passed in.  Alternatively, (and ideally), there is a setting in WebGrid that I have missed that would maintain the current Session.  I am away from the code at the moment, but those are the things I haven't found yet.</p>
  
  <p>What I am looking for is a way to preserve the Session while using the WebGrid sortable column feature.</p>
  
  <p>Additional Information:  In the view, the WebGrid's <code>&lt;th&gt;</code> elements are all anchors, like <code>&lt;a href="/MyController?sort=MyColumnName?sortdir=ASC"&gt;</code></p>