Restricting Access to Your Application
Assume for the moment that you want to require your users to log in as soon as they enter your application. You could put a login form on your application’s front page or home page, but what if a user doesn’t go through that page for whatever reason? For instance, if they use a bookmark or type the URL for some other page, they would bypass your login screen. You must figure out a way to ensure that the user gets prompted for a password on the first page request for each session, regardless of which page they are actually asking for.
A great solution is to use the special Application.cfc file set aside by ColdFusion’s Web application framework, which you learned about in Chapter 19, “Introducing the Web ...
Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.