开发者

php cookies block access to directories

开发者 https://www.devze.com 2022-12-31 03:00 出处:网络
I have a mysql database of users that can login to my site and view content. I would like to block a couple of directories from certain users. What is the best way to do this.

I have a mysql database of users that can login to my site and view content. I would like to block a couple of directories from certain users. What is the best way to do this.

Currently when a user logs in a cookie is created with their customer id and th开发者_如何学JAVAe customer is is used to display their content.

How would I block entire directories from my users???

EDIT: I need to allow one user in my database to access the directories once logged in.


See:

Mod_rewrite - Deny access to certain folders

More Info:

http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html

0

精彩评论

暂无评论...
验证码 换一张
取 消