Login Authentication and Session
<p>I am using Asp.net with Visual Studio 2010 and MySql.</p>

<p>I want to make a <strong>log in Authentication</strong> and <strong>Time Limit</strong> to stay logged in.
On the Page_Load of the Login.Aspx I tried this</p>

<pre><code> Session["Login"] = TxtLogin.Text;
</code></pre>

<p>and on the page_load of every other page:</p>

<pre><code> If(Session["Login"] != null) 
{  
Open the page normally 
} 
else 
{   
 Response.Redirect("/Login.aspx"); 
}
</code></pre>

<p>I tried it with the Web.confg but nothing.<br>
Any help? Or could you show me a better way to do this?
Thanks everyone !</p>
