I'll say a bit first about my setup, in case that has anything to do
with it:
Request comes in this format:
www.site.com/file.cfm/controller/action
file.cfm parses the cgi.script_name and/or cgi.path_info to determine
which controller to instantiate, and which method to run on that
controller.
This isn't really anything new or groundbreaking.
When I run this on CF7.0, everything works fine, and as expected.
However, when I run it on CF6.1, I get some strange behavior - it
appears to be messing with my session (I'm not convinced it is the
request as I mentioned it above, but I think that is the only "strange"
thing I'm doing, so I included it). The session is basically just set
up like this:
page loads, if session.id is not defined, initialize it to 0. if
session.permissions is not defined, initialize it to none.
if the session id is 0, show the login screen. if the session id is not
0, and the user has permission, show the page. It is using
application.cfm, in this case.
But, when I post a form in the site.com/file.cfm/controller/action part
of the application, all the sudden it is as if my session is
invalidated. On that page, my session id and permissions remain intact,
but on posting the form, they are reset to 0.
I've checked /every/ reference to the session scope in the application,
and there are no problems with it. I even did a test just before the
one place my sessions variables mentioned above would be set to 0/none,
and strangely, they have acquired those values before they could have
been set (as in, if that file was loaded in the browser, it would have
told me so).
I'm really at a loss for how to describe what's happening or how it
could be happening. My hope is that someone else here has found a
similar behavior (or several of you have) and might just throw out some
thoughts on what could be happening. I plan to debug some more on
Monday, and will let you all know if I figure it out. In the mean
time, if you've seen strange things like this, let me know what (if any)
conclusions you came to as the cause, and if you found a solution.
Thanks,
Sam
You are subscribed to cfcdev. To unsubscribe, please follow the instructions at
http://www.cfczone.org/listserv.cfm
CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]