title: ASP.net master page/content page simple design problem
body: <p>My master page:</p>
  
  <pre><code>public partial class MasterPages_Main : System.Web.UI.MasterPage
  {
      public bool IsLoggedIn;
  
      protected void Page_Load(object sender, EventArgs e)
      {
  
          // Check login
          LoggedInUser ThisUser = new LoggedInUser();
          IsLoggedIn = ThisUser.IsLoggedIn;
  
          Response.Write("Master" + IsLoggedIn.ToString());
  
      }
  </code></pre>
  
  <p>This outputs 'True', we are logged in.</p>
  
  <p>On my content page I do:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
  
      Response.Write("CONTENT:" + Master.IsLoggedIn.ToString());
  }
  </code></pre>
  
  <p>But this outputs 'False'.  </p>
  
  <p>So the actual page output is:</p>
  
  <pre><code>Content:False
  Master:True
  </code></pre>
  
  <p>On my content page I need to redirect if the user is logged in, but this value is always false from the content pages point of view!  How can I resolve this?</p>