title: ASP.NET MVC Post for @Url.action()
body: <p>I have the following controller auto-generated by asp.net</p>
  
  <pre><code>    //
      // POST: /Account/LogOff
      [HttpPost]
      [ValidateAntiForgeryToken]
      public ActionResult LogOff()
      {
          AuthenticationManager.SignOut();
          return RedirectToAction("Index", "Home");
      }
  </code></pre>
  
  <p>Now I have a log off button.  Currently it looks like this:</p>
  
  <pre><code>   &lt;div class="userdrop"&gt;
                  &lt;ul&gt;
                      &lt;li&gt;&lt;a href="@Url.Action("Manage", "Account")"&gt;Profile&lt;/a&gt;&lt;/li&gt;                       
                      &lt;li&gt;&lt;a href="@Url.Action("LogOff", "Account")"&gt;Logout&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;&lt;!--userdrop--&gt;
  </code></pre>
  
  <p>But it does not work and I am guessing it is cause it is a Post action method.</p>
  
  <p>How would I go about "logging off" ?</p>
  
  <p>[EDIT]</p>
  
  <p>Why is it auto-generated as an Http Post? Is it more secure that way? Does it not send the cookie with it when it logs out?</p>