New answers tagged


Your approach does not provide security. I could hand-craft a cookie named "wordpress_logged_in" (containing any arbitrary value) and have access to your PDF files. You may want to rethink your solution to put a PHP script in between the files and the users. e.g. User Clicks download button PHP Script handles fetching document If authenticated user, PHP ...

Top 50 recent answers are included