Application.cfm or Application.cfc

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Application.cfm or Application.cfc

    I am trying to get more information on the differences between using an
    Application.cfm or an Application.cfc file. I think that the main difference
    is that the .cfm is a tag based where .cfc is script based? I have no idea if
    that is correct....just what i think i have picked up.

    Please reply with your opinions and preferences as well as an explanation of
    what the differences are and the advantages of each.

    I am beginning to write an application for the company I work for and am
    trying to make sure i am taking the right approach. Thanks for all of your
    help!

    Josh

    jeby Guest

  2. Similar Questions and Discussions

    1. Flash Remoting Application.cfc & Application.cfm problem
      Hi there, When using Flex 1.5 client application, when using Application.cfm to deal with remoting SetCredentials(user,pwd), I just set it once...
    2. dllimport call in aspnet application makes the application hangs
      As our application design requires us to use one of the validation API engine which was written on C(so basically all I have is a dll) and I tested...
    3. What issue will HIT me hard when I convert an Access 2002 MDE application to Web Application?
      Hi All, Current Access 2002 MDE application: - has no tier - has neither business object nor any kind of object (Except MS Form object and...
    4. Can a web application call methods on a webservice running in the same application
      Can a web application call methods on a webservice running in the same application Thanks Ron Vecchi
    5. How to inherit a base form in all application forms of an asp.net application
      hello friend, while developing an asp.net application, i created a base form(say mybaseform1) with certain links on it. then i tried to...
  3. #2

    Default Re: Application.cfm or Application.cfc

    No you are wrong. You can use tags in either just like you can use cfscript in
    either.

    Application.cfc replaces the use of Application.cfm and OnRequestEnd.cfm and
    adds new abilities.

    Application.cfm very similar to a cfinclude that is run on every page request
    before any other code, where as Application.cfc is a ColdFusion Component. It
    has variaous methods that are called in different situations. You have
    onRequestStart() and onRequest() which are called before every page. You also
    have onSessionStart() and onSessionEnd() methods that are self explainatory.

    You should read
    [url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/[/url]
    wwhelp.htm?context=ColdFusion_Documentation&file=0 0001117.htm and read through
    the following pages by using the right arrow at the top.

    Stressed_Simon Guest

  4. #3

    Default Re: Application.cfm or Application.cfc

    Ok. Application.cfc definatly sounds like the way I need to go. Does the
    Application.cfc file also go in the root like the Application.cfm?

    Are you able to get session information during the onSessionStart() and
    onSessionEnd() such as SessionID and Username of the person that was is the
    session is their username was a session var such as Session.Username?

    I want to keep track of all of the current sessions in my application. I want
    to be able to display a list of users that have current sessions. Is that
    possible?

    Josh

    jeby Guest

  5. #4

    Default Re: Application.cfm or Application.cfc

    I could really use some help on this situation. Anyone with any info please reply. All help will be greatly appreciated! Thank you all!!!
    jeby Guest

  6. #5

    Default Re: Application.cfm or Application.cfc

    Well, onSessionStart() would only be called the first time a user browses to
    your site -- they just started a new session. Using onRequestStart() will let
    you do things at the beginning of every page load, which is what it sounds like
    you want to do.

    Cannikinn Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139