title: After successful login, I get redirected to login page again ASP.NET C#
body: <p>I have login page in which login control is used, everything works fine in local machine but not working on server. after successfull login without any bug or error it again redirecting to login page.
  below is my code. 
  web.config</p>
  
  <pre><code>&lt;location path="Admin"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow roles="Admin,user"/&gt;
          &lt;deny users="*"/&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
  
    &lt;authentication mode="Forms"&gt;
        &lt;forms name="RJD" domain="abc.net" loginUrl="Login.aspx" protection="All" slidingExpiration="true" defaultUrl="~/Admin/ApproveComments.aspx" timeout="60" path="/"&gt;
        &lt;/forms&gt;
      &lt;/authentication&gt;
  
   protected void ctrLogin_Authenticate(object sender, AuthenticateEventArgs e)
          {
              FormsAuthentication.Initialize();
              clsAuthenticate objauthonticate = new clsAuthenticate();
  
              try
              {
                  objauthonticate.user = ctrLogin.UserName.Trim();
                  objauthonticate.Pasword = ctrLogin.Password.Trim();
                  if (objauthonticate.Authonticate())
                  {
                      HttpContext.Current.Session["user"] = objauthonticate.user.ToString();
                      CreateTicket();
                      e.Authenticated = true;
                  //    FormsAuthentication.RedirectFromLoginPage(ctrLogin.UserName, ctrLogin.RememberMeSet);
                      Response.Redirect("~/Admin/ApproveComments.aspx");
  
                  }
                  else
                  {
                      e.Authenticated = false;
                  }
              }
              catch (Exception ex)
              {
                  //throw ex;
                  ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Alert", "alert('" + ex.Message + "');", true);
              }
  
          }
          private void CreateTicket()
          {
  
  
              clsAuthenticate oblogin = new clsAuthenticate();
              string role = oblogin.getRoleByID(Session["user"].ToString());
  
              FormsAuthentication.HashPasswordForStoringInConfigFile(ctrLogin.Password, "sha1");
  
              FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, "Forms", DateTime.Now, DateTime.Now.AddMinutes(30), true, role);
  
              string hash = FormsAuthentication.Encrypt(ticket);
              HttpCookie cookie = new HttpCookie(FormsAuthentication.FormsCookieName, hash);
              Response.Cookies.Add(cookie);
          }
  </code></pre>