Re: using application.cfm and cfcontent

2006-08-20 Thread Crow T. Robot
UGH. I found my issue - somehow I had my if statement backwardsthanks for the help, guys. I can't believe how much of a dumbass problem that was. On 8/20/06, Casey Dougall <[EMAIL PROTECTED]> wrote: > > Wrapping validation right around the tag works works very well. > In this case applicat

Re: using application.cfm and cfcontent

2006-08-20 Thread Crow T. Robot
On 8/20/06, Jochem van Dieten <[EMAIL PROTECTED]> wrote: > > Crow T. Robot wrote: > > 4) Jochem, what is supposed to happen if they don't have an allowed IP, > a > > javascript alert is displayed, then when they click "OK", they are > > redirected to the index page of the main site. What is/was ha

Re: using application.cfm and cfcontent

2006-08-20 Thread Casey Dougall
Wrapping validation right around the tag works works very well. In this case application.userIPList is a a list with multiple IP's verified against that of the the users current computer. DOH! You don't have access to this without being from the IP on File. Please contact support. Casey ~

Re: using application.cfm and cfcontent

2006-08-20 Thread Jochem van Dieten
Crow T. Robot wrote: > 4) Jochem, what is supposed to happen if they don't have an allowed IP, a > javascript alert is displayed, then when they click "OK", they are > redirected to the index page of the main site. What is/was happening is > they were just being allowed to see the Word doc as if t

Re: using application.cfm and cfcontent

2006-08-19 Thread Crow T. Robot
OK, I understand that. But, in my case, I'm redirecting via cflocation (even though I forgot that part in my code), so in my eyes, I'm taking care of that even if I'm not showing the user why they are being redirected. I know that's not the most user-friendly way of doing things, but it works unt

Re: using application.cfm and cfcontent

2006-08-19 Thread James Holmes
Of course. Without the cfflush, the JS bit and eny other content you've written is reset by the CFCONTENT tag. Never rely on JS or any other browser output to secure your apps. All security should be server-side. On 8/20/06, Crow T. Robot <[EMAIL PROTECTED]> wrote: > > > SELECT IP > FROM IP_LCK

Re: using application.cfm and cfcontent

2006-08-19 Thread Crow T. Robot
1) I know that cfcontent has no knowledge of the login status of the user. 2) I stated that I am checking the user's IP address as my "login check" against a database of allowed IPs. This is done in application.cfm and works fine for any pages that are not using cfcontent to serve up the content.

Re: using application.cfm and cfcontent

2006-08-18 Thread Casey Dougall
I don't think cfcontent or any tag for that matter knows if a user is logged in. Regardless if the application.cfm you need to specifically wrap code around cfdocument to ensure the person is logged in or whatever before you run it. As an example, you can run a cfinclude and it will bypass appli

Re: using application.cfm and cfcontent

2006-08-18 Thread Jochem van Dieten
Ray Champagne wrote: > 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". What happens when the user is not in there? Jochem

RE: using application.cfm and cfcontent

2006-08-17 Thread Ben Nadel
"Some people call me the space cowboy. Some people call me the gangster of love." -Original Message- From: Crow T. Robot [mailto:[EMAIL PROTECTED] Sent: Thursday, August 17, 2006 2:40 PM To: CF-Talk Subject: Re: using application.cfm and cfcontent Yea, I'm very aware t

Re: using application.cfm and cfcontent

2006-08-17 Thread Crow T . Robot
Yea, that is what seems to be happening. > I wonder if this might be a side affect of the option > to reset the request. Thus what was done in the > was thrown away? > > > -- > Ian Skinner > Web Programmer > BloodSource > www.BloodSource.org > Sacramento, CA > > - > | 1

Re: using application.cfm and cfcontent

2006-08-17 Thread Crow T . Robot
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

Re: using application.cfm and cfcontent

2006-08-17 Thread Ray Champagne
I'm not sure what you mean. The Word doc *is* being served up via cfcontent in a cf page - Original Message - From: "Dave Francis" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Thursday, August 17, 2006 11:33 AM Subject: RE: using application.cfm and cfcon

RE: using application.cfm and cfcontent

2006-08-17 Thread Ian Skinner
I wonder if this might be a side affect of the option to reset the request. Thus what was done in the was thrown away? -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - "C code. C code r

RE: using application.cfm and cfcontent

2006-08-17 Thread Dave Francis
AFAIK, application.cfm is only processed when cf pages are being processed. But I've been wrong before (Feb 17th, 1971) -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 hav

RE: using application.cfm and cfcontent

2006-08-17 Thread Ben Nadel
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. ...