Updating/Deleting Domain Cookies
I've discovered an issue that apparently stems from case sensitivity with cookies, but I'm not sure exactly where or why this issue is happening; it occurs with CF7 and FF/IE7, so I'm looking to find out whether I'm doing something wrong, given that cookies are not supposed to be case senstive. I wasn't able to find anything definitive on this subject in my searches.
I'm using domain cookies so that they can be shared across 2 sites.
Site 1: WordPress (PHP) site, cookies are set by a custom plugin and have camelCase.
Site 2: CF site, recognizes cookies from site 1 (apparently for this part, CF is case-insensitive for cookie names).
If in the CF site I attempt to update the cookies from the WP site, I end up with 2 sets of cookies: One set still camelCase from the WP site, the other set in ALLCAPS from the CF site (because CF makes the cookie names ALLCAPS regardless of the case you use).
If in the CF site I attempt to delete the cookies from the WP site, the values are set to be blank during the CF page request, but on the next page request, the original camelCase cookie values are restored. I attempted to delete the cookies using cfcookie followed immediately by deleting the cookie names from the cookie struct, to no avail.
To test whether it was a case sensitivity issue, I obtained the cookies from the WP site, edited them to be named with ALLCAPS instead of camelCase; then on the CF site, the cookies were appropriately updated, and I could appropriately delete them, too.
What gives?
- JH
