Accessing Sessions Variables in code behind
<p>Here is my code:</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
    {
        if (!Session["Authenticated"] )
        {
            Response.Redirect( "index.aspx", false );
        }
    }
</code></pre>

<p>Once they login I set the session to true.  Basically, if they don't have an active session I want them re-directed back to the index/login page.  How do I accomplish this?</p>
