How to login in SharePoint FBA site from another ASP.NET Site ?

If you would like to jump between your ASP.NET site and SharePoint FBA site and don’t want to login again, then you ASP.NET site must contain same viewstate and Event validation of your FBA site .

    1: <form name="Form1" method="post" action="https://localhost:1643/CommonAutheticationCookie/NTLMLogIn.aspx?ReturnUrl=%2fCommonAutheticationCookie%2fdefault.aspx" id="Form1">
    2: <div>
    3: <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTIyOTQ2NTA3MmRk3x68MhAJJka37xjE++p7nmfpDUg=" />
    4: </div>
    5:  
    6:     
    7:     <HR width="100%" SIZE="1">
    8:     <DIV style="DISPLAY: inline; WIDTH: 464px; HEIGHT: 32px" ms_positioning="FlowLayout"
    9:      id="lblStatus">Please Enter your User name and password!</DIV>
   10:        <P>Domain Name :
   11:                     <input name="txtDomainName" type="text" id="txtDomainName" value="ANOMALY" />
   12:                     <br />
   13:                 User Name:
   14:     <input name="txtUserName" type="text" id="txtUserName" value="nm" />
   15:     <BR>
   16:     Password:
   17:     <input name="txtPassword" type="text" id="txtPassword" value="pass2word!"/>
   18:     </P>
   19:    <P>
   20:     <input type="submit" name="butLogIn" value="Log In" id="butLogIn" />&nbsp;
   21:     <!--  -->&nbsp;
   22:     <input type="submit" name="butClear" value="Clear" id="butClear" /></P>
   23:                 <P>
   24:         <span id="lblError"></span>
   25:                 &nbsp;</P>
   26:   
   27: <div>
   28:  
   29:  <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBgLMq6vVCAL9sO3VBgKl1bKzCQK1qbSRCwKUyOuxAQKfpfP1BBYQ7kXGVTMkWa1q0NVVdYFVrV2p" />
   30: </div></form>