House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Empty cfid and cftoken - is this common? The answer

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Bud
06/17/2003 07:35 PM

OK, I found an answer to this problem. It is yet just one more unnecessary behavioral change in MX from presvious versions. In my shopping cart application, when I want to delete the client cookies, I do it manually before the cfapplication tag: <cfcookie name="cfid" value="" expires="now"> <cfcookie name="cftoken" value="" expires="now"> This has worked great since ColdFusion 4.0 thru ColdFusion 5.0. The cfapplication tag sees the empty values and creates a new unique client.cfid and client.cftoken and sets the cookies accordingly (if setclientcookies="yes"). Not so with MX. MX takes the value of the cookies you created and deleted and sets  client.cfid and client.cftoken to that value, then creates the new client cookies with, you guessed it, empty values. Now everyone that this happens to is sharing the same client variables. Hopefully having the answer to this will save someone some grief in the future. -- Bud Schneehagen - Tropical Web Creations, Inc. _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Web Based Solutions / eCommerce Development & Hosting http://www.twcreations.com/ - http://www.cf-ezcart.com/ 954.721.3452 - Toll Free: 877.207.6397 - Fax: 954.721.7493

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Carabetta
06/17/2003 08:12 PM

----- Excess quoted text cut - see Original Post for more ----- future. Interesting that your observations yielded that conclusion. I had a similar problem where a bit of code was deleting the CFTOKEN cookie. In CF 4.5, no big deal, a new CFID/CFTOKEN is generated because it can't find the CFID:CFTOKEN pair in the database (i.e., 123:[blank]). In MX, I get a Null Pointer error and my cfapplication tag is shown in the debug output as being the line where the error is occurring. It turns out that the underlying mechanism that does the select against the CDATA and CGLOBAL tables chokes because the CFTOKEN value is now null. Once I tracked it down, I sort of understood the reasoning, but the error message is awfully misleading and essentially useless, and, like you, it's another undocumented changed between pre-MX and MX. I feel your pain Bud. Regards, Dave.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Bud
06/17/2003 08:43 PM

----- Excess quoted text cut - see Original Post for more ----- I wish that would have happened when both were null. Instead, I was deleting cookies, then MX was creating new BLANK cookies and everyone was sharing the same client variables. >Once I tracked it down, I sort of understood the reasoning, but the error >message is awfully misleading and essentially useless, and, like you, it's >another undocumented changed between pre-MX and MX. Imagine not even getting an error. I have people calling me telling me they are being logged in as someone else.I'm like, "CAN'T BE!"  LOL >I feel your pain Bud. > >Regards, >Dave. Thanks Dave. -- Bud Schneehagen - Tropical Web Creations, Inc. _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Web Based Solutions / eCommerce Development & Hosting http://www.twcreations.com/ - http://www.cf-ezcart.com/ 954.721.3452 - Toll Free: 877.207.6397 - Fax: 954.721.7493


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 23, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference