http://www.perlmonks.org?node_id=1030811


in reply to Protecting a PDF file

so what authentication mechanism do you use?
if( loggedIn() ){ if( userIsAllowed() ){ sendPdfFileWithResumingAndAllThat(); } else { errorNotAllowed(); } } else { errorNotLoggedIn(); }