Can I do it with only session or do I need ACL?

心已入冬 提交于 2020-01-25 12:53:57

问题


I am planning to create a simple project management system with PHP/MySQL/Codeigniter.

There will be a super-admin, an admin and around 20 users. User A, B, C...

And there will be around 50 projects. Project 1, 2, 3 ...

User A and B will be able to access project 1 pages, User C, D and F will be able to access project 2 pages etc.

Can I do it with session?

Or do I need to use ACL?

How should I structure the DB?

Can you give me your ideas please?


回答1:


As sessions are mere tools to save user-specific data in, you are going to need some sort of access control. Some examples:

Here is how I like to do it using a home-made ACL system.

Zend_ACL is said to be very good, but I haven't worked with it myself yet.



来源:https://stackoverflow.com/questions/1922553/can-i-do-it-with-only-session-or-do-i-need-acl

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