title: How to auto login a website using windows authentication on intranet?
body: <p>I am hosting my site on <code>xampp</code> and want to auto login my website using <code>LDAP</code>. So as of now I use <code>PHP</code> to grab the windows current username and try to validate it with AD via ldap and it works. </p>
  
  <p>But since PHP is server sided it only grabs current user of the system in which <code>xampp</code> is running how can I achieve it for every system connected via LAN. If I run it on any other system of intranet it shows the system's name which has <code>xampp</code> running on it.</p>
  
  <p>Is there any way to grab windows current user details on the client side or is there any better and easy way for auto login. </p>