I currently have our websystem split into a sales part and an admin part.
/wwwroot
/sales
/admin
Application.cfc
Currently I use a distinct Application.cfc in admin as shown above, since it is only within /admin that users require a session. However, by putting the Application.cfc in admin I loose access to all of my APPLICATION scope variables and utility objects, which I need access to from sales. The ideal solution would be to put Application.cfc in the wwwroot, however I was concerned about sessions being automatically created unnecessarily for users browsing the sales area. However does my concern have any weight, i.e is the memory consumed per session (bearing in mind users within sales do not add to that session data) so minimal that I should not consider it a concern? ..
.. Otherwise what do you suggest? I know there is a SERVER scope I could attach variables to, but doesn't feel right since it would be affecting ALL applications on the server.. although mine is the only one running it doesn't feel like the correct solution. Thanks
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.