QUOTE(wblakenc @ 15 Aug, 2008 - 01:43 PM)

I am confused about Session variables and I think they are the cause of my problem reported in another post further down the page. Is there a best usage practice when it comes to setting SESSION variables? Should they be set in the Application.cfc or Auth.cfc file? Is there any time when you would or would NOT set them there? Or is it better just to set all session variables on the index (or whatever first page)?
I am setting some variables in the Application, some in the Auth (my authorization logic), and in the index page. Now all the variable names are different so there is no problem with that, however they are used in various different places all over the application.
Ideas?
I create sessions variables and give them default values in application.cfm. Once my user logs into the application I then set the variables. I even set some variables after a query. Hope this helps.