title: Secure login with proper authentication in PHP
body: <p>How do I write/put together a secure login in PHP? The <a href="https://stackoverflow.com/questions/72394/what-should-a-developer-know-before-building-a-public-web-site/305381#305381">website developer guide</a> said I shouldn't roll my own, so referring to samples available via Google is useless.</p>
  
  <p>How do you pros do it? Lets say you're building a world-class app in rails, would the same libraries / techniques be usable here?</p>
  
  <p>Thanks</p>