PHP login class

岁酱吖の 提交于 2019-12-03 01:52:37

Take a look at Zend_Auth:

Zend_Auth is concerned only with authentication and not with authorization. Authentication is loosely defined as determining whether an entity actually is what it purports to be (i.e., identification), based on some set of credentials. Authorization, the process of deciding whether to allow an entity access to, or to perform operations upon, other entities is outside the scope of Zend_Auth.

For a multiple-user-role (authorization) implementation take a look at Zend_Acl:

Zend_Acl provides a lightweight and flexible access control list (ACL) implementation for privileges management. In general, an application may utilize such ACL's to control access to certain protected objects by other requesting objects.

Please keep in mind that it's possible to make use of those without having to commit to using the entire Zend_Framework, as it's not a full-stack framework, and I'm in no way trying to encourage you to use the above, or any framework for that matter. Just thought I would mention those as they haven't been already.

I would suggest taking a look into how Drupal handles their log-in service. I'm quite fond of that whole message board setup - you may be able to take some of their ideas and make your own class

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