September 2007
Intermediate to advanced
600 pages
20h 21m
English
Once you save Listing 23.7 as a file named Application.cfc, users will be forced to log in whenever they visit any of the pages in that folder (or its subfolders). However, the order history pages that were created above will no longer work, since they rely on the SESSION.auth variables populated by the homegrown login framework. A few changes must be made to allow the order history pages with the <cflogin> framework. Basically, this just means referring to the value returned by getAuthUser() to get the user’s ID and first name, rather than using SESSION.auth.contactID and SESSION.auth.firstName. Listing 23.8 shows the new version of the order history template.
Read now
Unlock full access