Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 453057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:08:03+00:00 2026-05-12T22:08:03+00:00

I have a web-site written in ColdFusion that contains both the usual interactive web

  • 0

I have a web-site written in ColdFusion that contains both the usual interactive web pages and some tasks run through the CF scheduler. The dir layout is

/
/app
/scheduledTasks

I’d like the tasks to be able to use all the same settings, etc. created in the application.cfc inside of /app so I’d like to move that entire /scheduledTasks directory into /app. The problem is that that application.cfc uses the cflogin mechanism and my own log in form. The CF scheduler only lets you supply a username and password for HTTP Basic authentication. The scheduled tasks will never get past that. How can I resolve this or is there a better approach to begin with?

I’ve wondered about looking at some CGI variable in my application.cfc’s OnRequestStart such as the user agent, the remote IP, and/or a magic value in the URL param’s and if all are there, bypass security since I “know” it’s CF’s scheduler on the other end. This isn’t great security but it may be acceptable.

I’ve also wondered about creating a new application.cfc in my root that the application.cfc in /app inherits from. I’d leave the tasks where they are and put a new application.cfc there as well that inherits common stuff from the root. This increases complexity though and I’ve had issues when trying to access the CFCs inside of /app/cfcs from /scheduledTasks.

Has anyone had a similar problem and solved it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:08:03+00:00Added an answer on May 12, 2026 at 10:08 pm

    leave the schedule tasks in their own folder like you currently have it off the root of the site.

    create an application.cfc in the scheduletasks folder that extends the one in the apps directory like so:

    <cfcomponent extends="/.apps/application">
    

    overload the onrequeststart method and put in your authentication like so:

    <cffunction name="onRequestStart" returntype="void" access="public" output="false">
        <cfargument name="targetPage" type="any" required="true">
        <cfif not structkeyexists(url, "access") or not url.access eq application.ApplicationName>
            <cflocation url="/" addtoken="false">
        </cfif>
    </cffunction>
    

    this is VERY basic security but will get the job done. customize to your liking.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web page that uses a Python cgi script to store requested
I have written a simple HelloWorld web service. Which takes an ArrayList as parameter.
I am an intermediate level Python Programmer and I have written a Python program
I'm in the process of doing the analysis of a potentially big web site,
I have a need to do some fairly simple (at least on the surface)
we have an APP, that uses many local resources, such as windows printing API,
I've got an odd little dilemma in this jQuery slideshow plugin that I am
I am looking to create an effect like that which is used on The
I have been tasked with fixing bugs and adding new features to a website
I got really confused with static and non-static functions and class properties when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.