New to C# and trying to use a global variable
<p>Is it possible to use global variables in C#?  I'm coming from mainly a PHP background so variables are either accessible everywhere or just a <code>global</code> definition away.</p>

<p>My main issue is I have a <code>User</code> class that I built myself to wrap around the current <code>users</code> table on my company's database.  I am defining it in the MasterPage but can't seem to access it from the actual pages (I don't know if there's a better word to describe them but they are the pages that inherit the styles and format from the MasterPage)</p>

<p>Any general tips or implementation practices for me?</p>

<p><strong>EDIT</strong>: here's some code snippets of what I'm trying to do:</p>

<p><em>Site.master.cs</em></p>

<pre><code>public partial class SiteMaster : System.Web.UI.MasterPage
{
    public User user = new User();
}
</code></pre>

<p><em>logout.aspx</em></p>

<pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="logout.aspx.cs" Inherits="logout" %&gt;
&lt;%@ MasterType  virtualPath="~/Site.master"%&gt;
</code></pre>

<p><em>logout.aspx.cs</em></p>

<pre><code>public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        User user = Master.user;
    }
}
</code></pre>
