Access Session Variable created in page from MasterPage
<p>I am creating some sessions on successful login and I need to access them from my master page. How do I go about this?</p>

<pre><code>public void showUser()
{
    if (!string.IsNullOrEmpty(Session["User"].ToString()))
    {
        Response.Write(Session["User"].ToString());
    }
    else
    {
        Response.Write("Not Logged In");
    }
}
</code></pre>
