You need to change your cf server (and webserver) to process pdf files through coldfusion. That will allow application.cfc/.cfm to fire before the pdf is loaded.
(there are better ways, including using cfcontent to push the pdf content, but i will answer the question you asked, instead of throwing other ideas in) Assuming you are using cf8 and iis (maybe a bad assumption, but a place to start), I _think_ you need to change the web.xml file in cfusion\wwwroot\web-inf to handle pdf files, and change iis to allow cf to handle pdf files. (copy the way they both handle .cfm files, same settings, and you will be fine). On Mon, Aug 4, 2008 at 10:00 PM, Jessica Kennedy < [EMAIL PROTECTED]> wrote: > I have a directory of .pdf files nested within a secure section of my > website. However, the application is not firing when a user goes to the > direct link to the pdf, so anyone could see the pdf's... does anyone know a > way to keep the pdfs from showing unless a user is logged in? > > Thanks! > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310182 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4