...but only if the file you are trying to access in that directory is a
coldfusion page (.cfm) or a file that has been mapped to the coldfusion
engine. If you try and access the pdf files directly the application.cfm
WON'T be executed.
    The only ways you can protect these files is either by having the pdf
files outside of the web path and using cfcontent to send the pdf files when
requested or to use IIS security to protect that directory (if you're using
IIS of course...) or the equivelent for your web server.
  HTH
     Brian

> Make sure your section which you wish to password
> is in a directory by itself and use a CFAPPLICATION
> tag in there. If not authenticated for that section then
> sends them to the login page.
>
> By default Cold Fusion will execute the first cfapplication
> tag it find starting in the local directory then working its way
> up to the main directory.
>
>
> ----- Original Message -----
> From: "Kelly Matthews" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 09, 2000 10:27 AM
> Subject: cooooookies
>
>
> > Ok I have a question. I wanted to password protect a section of our
> website
> > using cookies with
> > Cold Fusion. It works fine except for this.  If someone links to a PDF
> file
> > (instead of an .htm file) it
> > doesnt even seem to read or care about the application.cfm file
therefore
> > never throws them
> > to the login page. Is this normal? Is there a way around it? Basically
we
> > have a huge members
> > section (behind a certain directory) that has a combination of both PDF
> and
> > HTM files but I want
> > them to have to log in no matter what they try to link to. Suggestions??
> > Kelly
>
> --------------------------------------------------------------------------
> ----
> > Archives: http://www.eGroups.com/list/cf-talk
> > To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to