title: "lifespan" of .NET public static variables?
body: <p>I did a little <em>experiment</em>. On the <strong>LoginButton_Click()</strong> event from a <strong>Login.aspx</strong> button, I have a code that does something like:</p>
  
  <pre><code>MyClass.MyPublicStaticString = LoginNameTextBox.Text;
  </code></pre>
  
  <p>After logging in it goes to <strong>Default.aspx</strong> by FormsAuthentication. On Default.aspx, I have a code on <strong>Page_Load()</strong> like this:</p>
  
  <pre><code>Label1.Text = MyClass.MyPublicStaticString.ToString();
  </code></pre>
  
  <p>After waiting for a few minutes, Label1.Text becomes empty even <strong>before</strong> my login timeout expires. </p>
  
  <p>What is happening here?</p>