Yea, I'm very aware that the App.cfm page should be called.  I tried your 
cfflush thing, and if I insert it (cfflush) into the doc_server.cfm page (the 
one serving up the Word Doc), then the IP authentication works fine, but the 
Word doc isn't displayed as a Word doc.

So, my solution was to use <cfflush> if they are not authenticated, and 
everything seems to be working fine.

Weird, I'd like an explanation as to why this has to be done in this manner.  I 
know it has to do with the headers and something to do with cfcontent dumping 
all headers and starting over again, but I don't know exactly why.

First one to enlighten me gets a shiny star.  (Adhesive sold separately.)



>Anytime you call a CFM page, the Application file is being called first.
>.... Try this, write some content in the Application page, then in the top
>of the page that serves the CFContent, do a CFFlush and a CFAbort and see if
>the content shows. If not, then something weird is going on.
>
>......................
>Ben Nadel 
>www.bennadel.com
>
>-----Original Message-----
>From: Ray Champagne [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, August 17, 2006 10:14 AM
>To: CF-Talk
>Subject: using application.cfm and cfcontent
>
>I have a directory that is "protected" by a script that checks the user's IP
>against the database in Application.cfm.  If the user is there, they are
>allowed "in".  Everything is working fine, save for one script that uses
>cfcontent to serve up Word documents.  It seems like Application.cfm isn't
>being accessed first, and the user is allowed to see that document without
>the IP check.  Is this normal, and if so, anyone know of a good way to get
>around this?
>
>Ray

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250185
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to