title: ASP.NET C# Session Variables Being Lost
body: <p>I have a solution which includes 2 projects and 2 class files that are called by reference. In one of my projects, I have some code in Global.asax in the Session_Start block that loads a few variables from a database and sets them into session variables. If I put a break point in the Global.asax I can verify that the variables are in fact being set correctly. </p>
  
  <p>When I reference the session variables in classes in any of my code-behind modules or a class in my project, they are there. But if I reference them in one of the classes that is called by reference (a shared class, essentially), the Session variables are all null. </p>
  
  <p>I am using HttpContext.Current.Session["varName"] to access the variables in a class, as is standard. </p>
  
  <p>Is there something else I need to consider to have access to these session variables? Could it perhaps be a namespace issue? </p>