title: Auto login with JQuery Ajax?
body: <p>the question is how I can create an auto login page with JQuery ajax? I also need it to work in a countdown manner. I mean I'm creating a login page, which will help shorten my testing time and I will also use these skills for to generate some other http requests in other things...</p>
  
  <p>So it currently looks like this but it doesn't work:</p>
  
  <pre><code>&lt;h1&gt; 
      Auto Authentication in 2 seconds.
  &lt;/h1&gt;
  
  &lt;p&gt;
      &lt;script src="/GenTreeUploader/javascript/jquery.js"&gt;&lt;/script&gt;
      &lt;script&gt;
          $(document).ready(
              $.ajax("j_security_check", {
              j_username: "admin",
              j_password: "blogas"
          }););
      &lt;/script&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>And it also doesn't have time countdown, because I don't know how to do that. Can somebody help me please? I'm not very familiar with JQuery and barely remember anything at all right now.</p>