Also, cfdump the cookie scope to see if it shows up. Mike
-----Original Message----- From: Adam Parker [mailto:[email protected]] Sent: Wednesday, June 23, 2010 12:47 PM To: cf-newbie Subject: Get ASP cookie to CF Hello - I've trying to translate the following ASP code into CF: <% if pagesecurity=1 then 'check to see if login cookie is set. if not, punt user back to administrative login page' if request.cookies("je_user_id") = "" then response.redirect("default.asp") end if end if %> I interpret it as: <cfif pagesecurity EQ 1 and (cookie.je_user_id) EQ ""> <cflocation url="default.asp"> </cfif> I must be interpreting it wrong as this error occurs: Element JE_USER_ID is undefined in COOKIE. Must there be a cookie set before this code executes? Thanks, Adam ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5026 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
