title: Simulate CSRF Attack
body: <p>I want to simulate CSRF Attack to check my website vulnerability. I tried it on my asp.net webapplication but failed to simulate. So please help me to simulate the CSRF attack. I have simulated by having a test.aspx.</p>
  
  <pre><code>  &lt;form name="form1" id="form1" runat="server" method="post" action="mysite.com"&gt;
   &lt;script type="text/javascript"&gt;
          document.cookie[".ASPXAUTH"] = "someaspxauth";
          document.cookie["ASP.NET_SessionId"] = "somesessionid";
          document.form1.submit();
      &lt;/script&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>What else am i missing?
  Thanks in advance.</p>