Secure authentication in PHP

亡梦爱人 提交于 2019-12-06 11:50:20

I personally really like the symfony framework and its sfGuard plugin. It provides very easy to configure authentication. It hashes and salts all the passwords and provides a backend interface to manage users, groups and permissions.

Symfonys routing and configuration makes it very simple to set a secure flag on every page or even "area" of your web site. I have had no need to look elsewhere when building a secure web site.

An advanced authentication library I have developed is ulogin.sourceforge.net. It has support for remember-me, various brute force prevention methods and also secures your sessions against hijacking/fixation/replay. It also supports multiple user databases like sql/ldap etc. If you are not using a PHP framework like Cake/CI, I honestly recommend it.

Have you checked out Drupal? It provides authentication over ssl and it doesn't store passwords as plaintext in the database. And a it's "Control Panel" features are pretty good.

ESAPI has a general framework that you can use, it will take a little bit of rewiring but it is solid for what you are looking for. And of course, authenticate over SSL, don't store auth information on the client, etc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!