I have an authenticated website that has a subdirectory with stronger access requirements. Anyone can register for the main website, but only site administrators can log into the subdirectory. Currently, both the main site and subdirectory each have their own application.cfm
files and login pages.
I've recently updated from ColdFusion 8 to CF 10 and have had to do a lot of reconfiguring of my session handling. I am now using session-only cookies to help maintain the user's session as they move around the site.
With this change in behavior in CF 10, I'm concerned that site administrators who are also registered to the main website will get their sessions scrambled if they go back and forth between the two applications (for example, to see if they can replicate a user's problems or look up database details while they're logged into the main site).
The credentials for both the main site and the subdirectory come from the same user database, with site administrators having a flag that permits them extra access. I can easily write a script that checks to see if a user logged in on either the main site or the subdirectory and direct them appropriately if they change places.
Bottom line, in the CF 10 world, do I need a second application.cfm
, and, subsequently, a second set of session variables, for that subdirectory?
(Note: I've looked at both Coldfusion Cross site authentication and Can you have multiple cfapplications in an application.cfm? entries, and, while they have a lot of goodies here, don't quite answer my query.)