PHP restrict user to directory by session uid/pwd -


i have user mgmt system setup, how re-direct , restrict user her/his folder/sub-folders/files according $_session['uid']; $_session['pwd']; established when s/he logs in?

i'm using mysql-based user mgmt setup.

you need know how map uid folder. if have folder location stored in database somewhere, query find , header("location: /the/folder"); header-redirect.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -