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 8755443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:51:40+00:00 2026-06-13T13:51:40+00:00

I’m experimenting with the Application.cfc within coldfusion. I’d like to know if the application.cfc

  • 0

I’m experimenting with the Application.cfc within coldfusion. I’d like to know if the application.cfc is static in memory, i.e it’s created once for the first user and there after every user that accesses it accesses the same application.cfc (within memory).

Example.
UserOne accesses webpage > Application.cfc is created at memory block 1.
UserTwo accesses webpage > Application.cfc at memory block 1 is called again but function onRequestStart is called.

Am I correct in saying that the application.cfc is static within the memory (or until it expires) or is it recreated for every single user? Would this be a huge memory issue if it was?

Can someone explain thanks.

  • 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-06-13T13:51:42+00:00Added an answer on June 13, 2026 at 1:51 pm

    Application.cfc is executed for every request but only parts of it are run depending on the situation. The pseudo-constructor (where you set this.name type settings) is executed each time and cannot be changed problematically. onApplicationStart() only runs if the application doesn’t exist. The application scoped variables are accessible to every session and only exist once per application instance (not session instance). onSessionStart() only runs the first time a new visitor hits the site. There are other event specific functions

    Here is another thread that may may help with your question.

    ColdFusion Application.cfc – order of execution

    As well as adobe docs:

    http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-74fa.html

    An active user counter is as easy as something like pseudo code:

    onApplicationStart {application.activeUsers = 0} 
    onSessionStart {application.activeUsers++} 
    onSessionEnd {application.activeUsers--}
    

    Clearing up some confusion

    The ‘this’ scope is used to set application settings such as the name, sessionTimeOut, or customTagPaths. These settings are built into ColdFusion.

    <cfscript>
        this.customtagpaths = expandPath('./customtags');
        this.name = "myCoolWebsite";
        this.sessionmanagement = "Yes" ;
        this.sessionTimeOut = CreateTimeSpan(0,0,20,0);
    </cfscript>
    

    Although the ‘this’ scope is related to the application, you cannot use it to set persistent application scope variables. Application variables are set by using the ‘application.’ syntax and is usually initially set in the onApplicationStart() function.

    <cfset application.myVariable = "I am the same value for every user">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I know there's a lot of other questions out there that deal with this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I would like to count the length of a string with PHP. The string
We're building an app, our first using Rails 3, and we're having to build

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.