Hi,

I have a directory that contains html, php & image files that I want the user to have to log in to view. I don't want to use .htaccess as I want to be able to present them with a nice login page and also to be able to store logins in the DB.

Normally I would add a session["isloggedin"] after they had succesfully logged in and then simply add a check at the top of each php file checking if the session var is true or not.
That's great for php (and to an extent html) pages, but I also want to be able to block them from viewing any images unless they are logged in.

Can this be achieved?

Thanks
F