The stuff that you want to run when the application starts
should be in
onApplicationStart(), not onSessionStart().
Sometimes it takes a bit to work out exactly what processing
relates to the
application, or only to a user's session, or onto to the
given request. I
see a lot of code initialising session stuff in
onRequestStart(), for
argument's sake (which is seldom the place ot be doing that
sort of thing).
However for your situation, it's a given that stuff that sets
application-level settings (like those from the
<cfapplication> tag) don't
get set on a session-by-session basis; and likewise variables
in the
application-scope probably aren't supposed to be set at the
start of each
session either. If it's got the word "application" in it,
it's likely to
want to be initialised along with the rest of the
application. Ditto
things that have "session" somewhere in the name are
generally going to be
deal with by the session-specific event handlers; or
"request" in the name
the request-specific event handlers.
I don't think you read the bullet points (especially the
first two) on the
first link I sent you very carefully. I also don't think you
read the rest
of the stuff I pointed you at either. You might have scanned
them, but I
don't think you took the time to read them thoroughly.
Read these again:
http://livedocs.adobe.com/coldfusion/8/htmldocs/appFramework_08.html
http://livedocs.adobe.com/coldfusion/8/htmldocs/appFramework_09.html
http://livedocs.adobe.com/coldfusion/8/htmldocs/appFramework_11.html
http://livedocs.adobe.com/coldfusion/8/htmldocs/appFramework_12.html
http://livedocs.adobe.com/coldfusion/8/htmldocs/appFramework_14.html
http://livedocs.adobe.com/coldfusion/8/htmldocs/appFramework_15.html
Make sure to actually *read them* (and understand them),
rather than just
scanning your eyes over them.
Also go over the example code in there, and make sure you
correlate the
descriptive content with what they show in the code.
Then you'll know pretty much everything you need to know on
the topic.
Cool!
--
Adam