jeverd01 Posted November 24, 2009 Share Posted November 24, 2009 First off I am new to the forums and wanted to say hi to everyone Here's my question, hoping someone has a solution... I am building a secure area of a website, not encrypted but requiring authentication. I've started on this login area using php & mysql in a lamp environment. The login script sets session data and then I validate the session data before outputting any members only pages. A client wants pdf files listed on the website that are not accessible to the general public. I need multiple users so I can't just require authentication on the folder containing the pdf files. I am stumped now since the pdf file will be an external object. Any solutions would be appreciated! Update: Could I store the pdf file in a mysql database and then somehow create it? John Quote Link to comment https://forums.phpfreaks.com/topic/182725-pdf-files-in-a-secure-area-of-the-website/ Share on other sites More sharing options...
Alex Posted November 24, 2009 Share Posted November 24, 2009 Place the PDFs in question outside of the document root, then after authentication load them through PHP. Quote Link to comment https://forums.phpfreaks.com/topic/182725-pdf-files-in-a-secure-area-of-the-website/#findComment-964411 Share on other sites More sharing options...
jeverd01 Posted November 24, 2009 Author Share Posted November 24, 2009 Sounds good.. and I found a solution to do it for anyone else that is interested. http://www.issociate.de/board/goto/1026041/Serving_PDF_document_outside_www_root_problem..html Forgot to add: Thank you very much! Quote Link to comment https://forums.phpfreaks.com/topic/182725-pdf-files-in-a-secure-area-of-the-website/#findComment-964440 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.