What is the syntax for this?

Hi,
I'm new to CF and am trying to create a security layer for a
page that has some links where users can download a program.
I am trying to say, "If you're not logged in and you request
"myapplication.cfm", abort and go back to the index page. What is
the correct syntax for this? Also, could you please spell it out
since, as I said, I'm new to CF and to programming. Thank
you!

AmyEverAfter wrote:
> I was putting it in the Application.cfc file.
>
> The OnRequestStart function doesn't seem to work for
what I'm doing.
OnRequestStart has always worked for me for this type of
function. But
as I have no clue to what you are doing, I can't say why it
is different
for you then for me.
Have you reviewed the example in the documentation?
http://livedocs.adobe.com/coldfusion/8/htmldocs/appSecurity_14.html
http://livedocs.adobe.com/coldfusion/8/htmldocs/appSecurity_15.html
http://livedocs.adobe.com/coldfusion/8/htmldocs/appSecurity_16.html
http://livedocs.adobe.com/coldfusion/8/htmldocs/appSecurity_17.html
And the entire section on Securing Applications in the
ColdFusion
Developer's Guide?
http://livedocs.adobe.com/coldfusion/8/htmldocs/appSecurity_01.html
If you have and are still having trouble, we need to know
what the
actual problem(s) is|are, how you have tried to solve them
(i.e. code)
and what the results where as well as any error messages
generated.

Similar Messages

Maybe you are looking for

  • How do you use homeshare?

    I turned on homeshare and I put the ID of the account I wanted to share with, but I now I don't know where to find the songs. Can anyone help me? I would be helpful if theres some kind of vitsual aid.

  • I cant setup email on my new iphone with yahoo.

    I cant setup email on my new iphone with yahoo server. It keeps saying server is unavailable when I put my yahoo password in.

  • Lookups in ODI

    Hi , Is there is any Lookup Transformation,Router (like informatica) avilable in ODI. Thanks.

  • Unable to play songs Downloaded from Nokia Ovi Sto...

    Hi, I bought Nokia N8 when it was launched. I was using another laptop and music download and playback were working fine there. Recently i have changed my laptop and Have registered it for Music download through Nokia Ovi Suite and Music player. I am

  • Unable to store data into the Table(R/3)

    Dear All, our requirment is to store few records into the Table in R/3. We have update RFC which takes input arguments as AbstractList , the following is the code used to store data in the table(R/3) Zhr_Update input = new Zhr_Update(); AbstractList