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

From: Date: Thu, 04 Mar 2004 14:44:13 +0000
Subject: Re: protecting directories and files inside them based on session variables
Groups: php.general 
Request: Send a blank email to php-general+get-179450@lists.php.net to get a copy of this message
<snip> 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-authenticate in order to download there files? </snip> Move them outside of the website directory and use readfile to display them to the user.

« previous php.general (#179450) next »