How to secure a directory in Apache using a PHP session

Posted by Cogsy on Server Fault See other posts from Server Fault or by Cogsy
Published on 2010-03-24T02:14:09Z Indexed on 2010/03/24 2:23 UTC
Read the original article Hit count: 337

Filed under:
|
|

I have a site that uses PHP session for authentication. There is one directory that I would like to restrict access to that does not use any PHP, it's just full of static content.

I just don't know how to restrict access without every request going through a PHP script. Is there some way to have Apache check the session credentials and restrict access like Basic Auth?

© Server Fault or respective owner

Related posts about apache

Related posts about php