Hello, I am new and am having a hard time with PHP.
Scenario: There are PDF files on my website that I want users to register before downloading the files. I do not want them to login but rather provide basic information such as name and email address. Once the form is submitted, I am not sure if I should be using PHPSESSION to validate the user. Also, I am not sure where to place the files: either in the webroot (/var/www/) or outside.
I am new to PHP so please forgive me if I use terminology incorrectly.
Thank you for reading my question.