I am currently writing a PHP/MySQL site which requires access to a large number of manuscript pdfs for authenticated users.
I am using session variables to store log in information for restricting access to protected pages. However, the pdfs are a bit large to put into longblob fields and have kept them in a protected folder, with their links stored in the database.
Any ideas how I can allow access to the pdf files through the php pages while at the same time blocking other users who may know the folder or file name from accessing these without being logged in?
I am using session variables to store log in information for restricting access to protected pages. However, the pdfs are a bit large to put into longblob fields and have kept them in a protected folder, with their links stored in the database.
Any ideas how I can allow access to the pdf files through the php pages while at the same time blocking other users who may know the folder or file name from accessing these without being logged in?