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