Coldfusion 10 cookie missing

I am moving from a Coldfusion 9 server to Coldfusion 10. I noticed that my login cookie (generated from .NET) loses data when I read it in Coldfusion. IE, a cookie that should read:

EMAIL=user@hotmail.com & ID = 9994171 & CONTENT_SECURITY = MBR CO CFO PFS MC CL RE STF PA SP SC HCC & FIRST_NAME = Jack & LAST_NAME = Smith & FULL_NAME = Jack Smith & CHAPTER = 047 & TITLE_SEGMENT = Mid -Level / Execu & TITLE_SEGMENT_DEG = Other & PAID_THRU = 5/31/2014 12:00:00 AM & MEMBER_TYPE = STF & MEMBER_STATUS = A & IS_MEMBER = False & ELIGIBLETOJOIN = False & IS_STAFF = Yes

reads only CF10 as:

WEBSITE

It seems that any special character causes this, as I see it with spaces, = etc. Has anyone had this problem or is there any contribution to the cause of this? Because of this, I do not want to rewrite my security, but it is difficult for me to understand this switch.

+4
source share
2 answers

Use the GetHTTPRequestData () method.

_cookie = GetHttpRequestData().headers.cookie; 
+1
source

Just decided that the same problem. We are working with a cookie with a fixed length. For some reason, CF10 does not display an individual cookie value, so we grabbed a line of all cookies, then searched by where the cookie value started, and retrieved the value. (Sanjeev credit for starting me in the right direction)

 <cfset allcookies = GetHttpRequestData().headers.cookie> <!--- Finds the string where your cookie starts ---> <cfset yourCookie = Find("sampleSting", allcookies) > <!--- Grabs a six digit number after the seven digit cookie string. ---> <cfset yourVariable = MID(allcookies,(sampleString+7),6)> 
0
source

All Articles