I know there is a way to use php session/cookie to authenticate user's login and redict to member index page.
But this is only for user authentication, it doesn't provide any way to protect member folder, inside member folder, for php files, it's ok to detect session key to display or deny user's access, but for binary files such as pdf or jpeg, user can directly type url on the web browser to that file without any authentication process.
Apache .htaccess provides folder protection, but it pops up box for user enter username/password, I am looking for something which is possible to combine these two authentication togather(I need php login form instead of pop up box), so it not only use php authentication to allow user login from login form, but also protect member folder.
Is there any protection method other than .htaccess to protect whole folder?
Does anyone know if Pear::Auth or AUTH::HTTP can protect folders?
Thanks in advance for any comments.
michael
But this is only for user authentication, it doesn't provide any way to protect member folder, inside member folder, for php files, it's ok to detect session key to display or deny user's access, but for binary files such as pdf or jpeg, user can directly type url on the web browser to that file without any authentication process.
Apache .htaccess provides folder protection, but it pops up box for user enter username/password, I am looking for something which is possible to combine these two authentication togather(I need php login form instead of pop up box), so it not only use php authentication to allow user login from login form, but also protect member folder.
Is there any protection method other than .htaccess to protect whole folder?
Does anyone know if Pear::Auth or AUTH::HTTP can protect folders?
Thanks in advance for any comments.
michael