title: Can we check if a session value is changed in asp.net ? Is there a property like dirty flag to set?
body: <p>I have a Session["Variable"] which is set to value1 onload.</p>
  
  <p>Now depending on user action on the application , I may set Session["Variable"] = value2.</p>
  
  <p>After I change the session value , Is there any property to check if Session["Variable"] is changed ?</p>
  
  <p>In Short:</p>
  
  <p>Onload  Session["Variable"] = value1; </p>
  
  <p>SomeUserAction Session["Variable"] = value2;</p>
  
  <p>Onsubmit  check if(Session["Variable"] has changed from value1)?</p>
  
  <p>Is there any property for session to track the change?</p>