Add kernel parameter SecureSessionCookieAllow to set the session cookie as secure (default 0).This parameter should only be set, when ALL requests to the site requiring a cookieare over https.
Create utility to retrieve pdf information using poppler utils (https://poppler.freedesktop.org/)This includes author, number of page, encription (yes/no), pdf version etc.