I am having an issue with cookies when I change directories.  What I
am seeing is that when I browse to a directory under the root and do
not put in a page, then it doesn't pull the cookies that are already
in the browser.  Lets take the following structure:

testing.local
/
/application.cfm
/index.cfm
/test
/test/index.cfm

Application.cfm:
<CFIF Not(IsDefined('Cookie.MyStuff')) >
        <CFCOOKIE NAME="MyStuff" VALUE="I have some">
        Here
<cfelse>
        <cfoutput>#Cookie.MyStuff#</cfoutput>
</CFIF>


If I go to the testing.local for the first time, it creates and set
the cookie just fine.  Then each time I visit testing.local or
testing.local/index.cfm it outputs the cookie just fine.  Now if I
browse to testing.local/test the sever says there isn't a cookie and
tries to set it.  Each refresh of the page does the exact same thing
and tries to set it again and again.  If I were to go to testing.local/
test/index.cfm though, the cookie displays correctly.  This is even
the case when I go from the root directly to test/index.cfm.  I've
tried this on ColdFusion 8 and hitting testing.local/test does keep
the original cookie that was set.  This particular setup is running
OpenBD 1.4.

Any thoughts?

Thanks!

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 official manual: http://www.openbluedragon.org/manual/
 Ready2Run CFML http://www.openbluedragon.org/openbdjam/

 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to