I didn't realize application.cfm could handle security but I was reading up on application.cfm in the archives and found a post describing something that would be useful to me. The reply has a link that doesn't work and I'd like to know if anyone has more information on it.
Here's the reply with the bad link: At 11:02 AM -0400 3/14/03: >Jeff, > >http://www.cfvault.com/index.cfm/mode/DisplayTutorial/TuUUID/7F4D0522-EC4C-11D3-85030050DABEAE1B/Tutorial_ >Page/1 > >This tutorial will explain it all. This is a great security application >to apply for secure sites. > >Regards, >James Blaha >>Okay, if I've got a directory that I want to protect (is user logged in?) I >>understand I want to put it in the application.cfm file for that directory, >>but I'm kinda stumbling about my logic and was wondering if you guys could >>clear things up for me. >> >>If the directory I'm trying to protect is a subdirectory under the root, and >>on the main page in the root there's a link to a javascript popup window >>that sits in the directory I'm trying to access, can I use javascript to >>refresh the parent window if the user successfully logs in? >> >>So all the logic for this directory will sit in the application.cfm file of >>the subdirectory, right? (call it 'foo'). And furthermore, can I use >>application.cfm to popup that SAME window that has the login form is the >>user isn't logged in? Say for instance, a user tries to bookmark a page in >>the foo directory. What I'd *LIKE* to happen, is that the page redirects to >>the home page of the root, and the javascript login window pops up. >> >>Can you accomplish this with the application.cfm in the foo directory? And >>once the user is logged in, all the standard IsUserInRole(#role#) will >>apply, no? Does my logic and approach sound like I'm grasping it correctly? >> >>So, in the foo directory, on any page in the directory: >>1. Is user logged in? >> no - load the root index page, and popup the login window >> yes - load the appropriate page >> >>2. If user goes to log in >> If successful, close popup, refresh parent window with the index page >>from foo >> If unsuccessful, refresh the popup with the login option and add the >>ability to close the window if the user doesn't have a login name/pw -- Daniel Kessler Department of Public and Community Health University of Maryland Suite 2387 Valley Drive College Park, MD 20742-2611 301-405-2545 Phone www.phi.umd.edu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210111 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54