|
-
Apr 26th, 2007, 03:19 AM
#1
Thread Starter
Addicted Member
Password protect directory (not .htaccess)
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|