Jim, I am just concerned that redirecting out of a CFC might create sloppy code. I would probably want to continue to use Application.cfm for the redirecting or use an include at the top of every page. Can I use both Application.cfm and Application.cfc? If so, what order do they get executed in? Andy
________________________________ From: Jim Davis [mailto:[EMAIL PROTECTED] Sent: Sat 3/12/2005 2:00 PM To: CF-Talk Subject: RE: Application.cfc - why? what's it for? > -----Original Message----- > From: Andy Ousterhout [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 12, 2005 1:37 PM > To: CF-Talk > Subject: RE: Application.cfc - why? what's it for? > > How would I re-direct the page to login.cfm from a CFC? Same way you would from anything else, really. You could use a CFLOCATION tag (that's probably easiest) or set some variable that indicates your state and check it someplace common (for most sites my pages are always wrapped in a "wrapper" tag but many people also have navigation tags or the like). CFCs really aren't anything super special - don't add anything attributes to them that they don't have. It's easiest to think of them as regular CF pages most of the time. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:198603 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