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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -