Marcos

I am not sure what you mean by "False" case, but I am assuming you mean the 
virtual directory version that does not return the session variables set in the 
CFC.  If I dump the session inside the CFC and do not return, the values do 
exist.

To explore this further, I created a more complex test.  In this version of the 
code, I set a session value in the form cfm file.  I also capture the output 
inside both CFC's and save it to a file that I can read back.  This seems to 
indicate that the CFC called from a virtual directory has its own session 
scope.  Not only do the session values set in the CFC not exist when I return 
the form cfm file, the session value set before calling the CFC does not exist 
in its version of the session scope.

I also added values set in the application scope.  This actually throws an 
error in the CFC accessed through the virtural directory.  The error indicates 
that the application scope does not exist because no <cfapplication..> tag was 
called, even though there is a <cfapplication..> tag in the application.cfm 
file in the website root.

I have included the three test files and the appropiate application.cfm file I 
have created (I believe this list allows this).  Test2.cfm contains the forms.  
The first test2_action.cfc (676KB) is the cfc that is in the same directory as 
the test2.cfm file.  The second test2_action.cfc(710kb) is the cfc that I call 
from the virtural directory mapped to the website in IIS.  The only difference 
between this one and the first CFC is that the application variables are 
commented out since they throw errors.

The files are located on my system as such:
C://websites/ian/form_cfc_tests/application.cfm
C://websites/ian/form_cfc_tests/test2.cfm
C://websites/ian/form_cfc_tests/test2_action.cfc
C://websites/resources/cfcs/test2_action.cfm

C://websites/ian is the root of my local website "playground"
C://websites/resources is mapped as a virtural directory ["resources"] to the 
playground website in IIS.

--------------
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. 


Attachment: test2.cfm
Description: test2.cfm

Attachment: test2_action.cfc
Description: test2_action.cfc

Attachment: test2_action.cfc
Description: test2_action.cfc

Attachment: Application.cfm
Description: Application.cfm

Reply via email to