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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -