title: Asp.Net Session setting AFTER page load not working
body: <p><strong>Initial Scenario :</strong> Page loaded , Javascript runs to show a modal popup window.</p>
  
  <p><strong>Requirement :</strong> If the popup window is shown set a session value , this is done thru an AJAX jquery call to a handler.</p>
  
  <p>**Expected Result:**When the user closes the modal and clicks on any other link on the main webpage , check if session is set , if true don't show popup again on the navigated page.</p>
  
  <p><strong>Actual Result :</strong> The value for the session coming back as null (intermittently)</p>
  
  <p><em>This issue is <strong>NOT</strong> seen when debugging the code .</em></p>
  
  <p><strong>Is there a problem with setting a session after page load thru' an ajax call (since the headers are already loaded) ?</strong></p>
  
  <p>Also , in my case the check for session value happens on the master page.</p>
  
  <p>I have checked to see that the handler call comes back with status 200 . </p>
  
  <p>Even strange - This issue happens intermittently.</p>
  
  <p>What am I missing ? Where is the session setting getting lost ?</p>