Re: [PHP] protecting directories and files inside them based on session variables

2004-03-04 Thread Matt Matijevich
http://www.mydomain.com/private/some_privat_file.doc and downloading this file! I need a way to make this file only accessible to users who have a user_id in there session - is this possible? Or is my only alternative to password protect this directory using the webserver and force users to re-au

[PHP] protecting directories and files inside them based on session variables

2004-03-04 Thread matthew oatham
Hi, I have created a small website members area - this is protected using php session variables so to access it a variable user_id must exist in the session. However I have a directory on my webserver that holds documents that I want to make accessible only to users who have logged in however b

[PHP] protecting directories and files inside them based on session variables

2004-03-04 Thread Matthew Oatham
Hi, I have created a small website members area - this is protected using php session variables so to access it a variable user_id must exist in the session. However I have a directory on my webserver that holds documents that I want to make accessible only to users who have logged in however b