Try to abort the code inside the CFC and see if the CFC is generating the session. In "False" case, it's not running propperly.
regards, Marcos Placon� Desenvolvedor - NAVITA Fone: 55 11 3055-2001 Celular: 55 11 9560-3260 http://www.navita.com.br ------------- Segue mensagem original! ------------- De: "Ian Skinner" <[EMAIL PROTECTED]> Data: Thu, 18 Nov 2004 04:08:40 -0800 Para: "CFCdevzone" <[EMAIL PROTECTED]> Assunto: [CFCDev] Is this a known problem? Is this a problem or is this some expected behavior that I do not understand. TEST CASE: I have the following basic CFC to that is meant to be the action of a form. Test.cfc <cfcomponent> <cffunction name="formFunc" access="remote" returntype="void"> <cfscript> session.test = structNew(); session.test.foo = "bar3"; session.test.form = duplicate(form); </cfscript> <cflocation url="http://playground/form_cfc_tests/test2.cfm" addtoken="no"> </cffunction> </cfcomponent> I then have the two following forms to access copies of this CFC in different locations. The first one is in the same directory as the form; the second is in a directory that is mapped as a virtual directory ["resources"] to the website in IIS. Test.cfm <cfdump var="#session#"> <cfform action="test2_Action.cfc" method="post"> <input type="text" name="aField"> <input type="hidden" name="method" value="formFunc"> <input type="submit" value="submit"> </cfform> <cfform action="/resources/CFCs/test2_Action.cfc" method="post"> <input type="text" name="aField"> <input type="hidden" name="method" value="formFunc"> <input type="submit" value="submit"> </cfform> <cfset structDelete(session,"test")> The first form that accesses the copy of the CFC in the same directory works as I would expect it to. The values are set in the session scope, the cflocation is followed and then when the session scope is dumped in the form file, the values set in the CFC are there. The second form does not do this. The CFC is processed without exception, but when the cflocation is followed and the session scope is dumped, none of the values set in the CFC exist. Is this correct? Is it a known bug? If so, has it been fixed? Thank You -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at [EMAIL PROTECTED]
