title: Authenticate ASP.NET user session with javascript
body: <p>That standard demos for ASP.NET MVC 3 web site user managements include the following login process: </p>
  
  <ol>
  <li>User enters auth data.</li>
  <li>Data is posted to the server.</li>
  <li>Code that handles authentication attempts checks provided data with DB.</li>
  <li>If everything is OK - calls <code>FormsAuthentication.SetAuthCookie</code>to set the cookies for the upcomming session requests from the browser.</li>
  <li>And redirects user to whereever.</li>
  </ol>
  
  <p>I want to implement a purely jQuery.Ajax - ASP.NET logon mechanism. </p>
  
  <p>I can call MVC site actions from js with no problem. But how do I get this <code>FormsAuthentication.SetAuthCookie</code> cookie data to manually, from JS code put them in a browser cookie store? How do I extract them on the server or in jQuery.ajax success code?</p>