it takes me out during short time, ASP.NET Login
<p>i wrote a login menu and control panel for users,
but during short time it takes me out, see the codes
you know in the config file i wrote that "Admin" folder is secure and it's timeout is 30 minutes but when i'm logging maybe in 40-50 sec it take me out, where am i wrong ?
please help me
Web.config codes :</p>

<pre><code>&lt;authentication mode="Forms"&gt;
          &lt;forms name="MyAppCookie" path="/" loginUrl="Login.aspx" protection="All" timeout="60" defaultUrl="Admin" /&gt;
      &lt;/authentication&gt;
      &lt;authorization&gt;
          &lt;allow users="*" /&gt;
      &lt;/authorization&gt;
    &lt;customErrors mode="Off" /&gt;
    &lt;pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode="Never" enableViewStateMac="false" /&gt;
      &lt;!--&lt;sessionState timeout="1440"&gt;&lt;/sessionState&gt;--&gt;
  &lt;/system.web&gt;
    &lt;location path="Admin"&gt;
        &lt;system.web&gt;
            &lt;authorization&gt;
                &lt;deny users="?" /&gt;
                &lt;deny users="Users" /&gt;
            &lt;/authorization&gt;
        &lt;/system.web&gt;
    &lt;/location&gt;
</code></pre>

<p>Login Menu :</p>

<pre><code>var login = (from u in DataContext.Context.Core_Users
                         where u.UserName == txtuid.Text &amp;&amp; u.Password == txtPwd.Text
                         select u).FirstOrDefault();
            if(login != null)
            {
                var role = (from r in DataContext.Context.Core_Roles
                            where r.RoleID == login.RoleID
                            select r).FirstOrDefault();
                if(role != null)
                {
                    string RoleName = role.RoleName;
                    FormsAuthenticationTicket AuthTicket = new FormsAuthenticationTicket(1, txtuid.Text, DateTime.Now, DateTime.Now.AddDays(1),false,RoleName,FormsAuthentication.FormsCookiePath);
                    string encryptedTocket = FormsAuthentication.Encrypt(AuthTicket);
                    HttpCookie AuthCookie = new HttpCookie(FormsAuthentication.FormsCookieName,encryptedTocket);
                    Response.Cookies.Add(AuthCookie);
                    Response.Redirect(FormsAuthentication.GetRedirectUrl(txtuid.Text, chkRemember.Checked));
                }
                else
                {
                    lblMessage.Text = "Role Deleted";
                }
            }
            else
            {
                 lblMessage.Text = "Wrong username or password";
            }
</code></pre>

<p>And secure pages :</p>

<pre><code>if (!IsPostBack)
            {
                //Start Authorization Section
                if (!Page.User.Identity.IsAuthenticated)
                {
                    FormsAuthentication.RedirectToLoginPage();
                }
                // End of Authorization Section
            }
</code></pre>
