I've set up a PHP and MySQL member section on my website, but want to display some images that only members can access. The script lets users onto a PHP page, which detects a cookie to see if they're logged in. If the page does not detect a cookie, the code stops and only the header of the page is shown. I need to display images that are for members only, but am concerned that people will just go to my images directory and find them on their own. I was wondering if PHP could log into a password protected directory which uses .htaccess.
Thanks for any input, or a new way around this problem. Script examples wold be appreciated since I'm an extreme beginner. 🙂