我可以只使用会话吗?还是需要ACL? [英] Can I do it with only session or do I need ACL?

查看:105
本文介绍了我可以只使用会话吗?还是需要ACL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算使用PHP / MySQL / Codeigniter创建一个简单的项目管理系统。

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

将有一个超级管理员,一个管理员和大约20个用户。用户A,B,C ...

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

大约有50个项目。项目1、2、3 ...

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

用户A和B将能够访问项目1页面,用户C,D和F将能够访问项目2页面页面等。

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?

还是我需要使用ACL?

Or do I need to use ACL?

我应该如何构造数据库?

How should I structure the DB?

您能给我您的想法吗?

推荐答案

因为会话只是保存的工具在用户特定数据中,您将需要某种访问控制。一些示例:

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

这里是我喜欢使用自制ACL系统执行的操作。

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

Zend_ACL 据说很好,但是我自己还没有使用它。

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

这篇关于我可以只使用会话吗?还是需要ACL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆