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:5023
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to