> You can do what you did, but in the application.cfm file,
> scope the variable to make it an session variable. Application
> variables are not tied to a user, but are application-wide
> variables. These are like PUBLIC variables in other languages.
> Session variables are tied to each specific user. Don't forget
> to enable Session management in the application.cfm file.
>
> <cfapplication name="foobar" sessionmangement="yes">
>
> <cfparam name="Session.hitcounter" default="0">
> <cfset Session.hitcounter = Session.hitcounter + 1>
>
> and use #Session.hitcounter# in the other pages to reference it.
If you're tracking visits to an application, you probably do want to use a
variable in the Application scope. If you use a Session variable, you'll
only be able to track the hits of a single user, which wouldn't be very
interesting information.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.