I'm running into a problem where it appears that Client variables or Cookies fail to get set properly when using the Missing Template handler. Has anyone else run into this, and if so, is there a workaround? I'm really baffled by this. From documentation and forums postings that I have seen, Allaire contends that the Missing Template handler functions exactly like a normal Cold Fusion template. However the test below seems to prove otherwise. I've pretty much accepted that none of this is going to work. I just want to know why. Is this a feature? is it a bug? Am I overlooking something simple? I do know that the Missing Template Handler does not call Application.cfm and that it must be included. For example, Setup: First, set the file "mth.cfm" as the Missing Template Handler in the CF Administrator. Also, tell CF to store client vars in a database (I don't know if this makes a difference, but it duplicates my testbed). Create an Application.cfm with a cfapplication tag and turn on client management and setclientcookies = yes. 1) Now, put the following code inside "mth.cfm": <cfinclude template="Application.cfm"> <cfset Client.MyVar = "My test variable."> <cfoutput>#Client.MyVar#</cfoutput><br> <a href="therealtest.cfm">Now for the REAL test.</a> 2) Put the following code inside "therealtest.cfm": <cfoutput>#Client.MyVar#</cfoutput> When you call the "mth.cfm" file directly, everything works as expected. You see the new client var both on the mth.cfm page and when you click the link to see the real test. (Be sure to delete the client variable between tests!!) However, when you enter a bogus URL to trigger the missing template handler, you still see the new client var. But when you click the link to "therealtest.cfm", you get an error that Client.MyVar does not exist. It also appears that the Missing Template Handler misbehaves when setting cookies. Any ideas? Thanks for your help, Jeremy Jeremy Ridout Internet Services Director www.ACEP.org American College of Emergency Physicians PO Box 619911 Dallas, TX 75261-9911 972-550-0911 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists