title: Session vs static Property in c#
body: <p>I wanted to use some data from one page to another. General solution is to use <code>Session</code> (most of recommends). My boss don't like sessions and he suggested me to do same work by using <code>C# Property</code> in common class as below </p>
  
  <pre><code>public static long parentId { get; set; }
  </code></pre>
  
  <p>and set it one one page as</p>
  
  <pre><code>Common.parentId = "any value";
  </code></pre>
  
  <p>and use it on other page like</p>
  
  <pre><code>string anyVariable = Common.parentId
  </code></pre>
  
  <p>and it worked. We get rid of session expiration as well. But why most of people recommend session. Is property another state management thing?</p>