using onRequest()


what value cf pass through onrequest() method arguments.targetpage? i'm trying set url obfuscation using url variables encoded encrypt() , decrypt(). i'm saving cgi variable (used log larger application) variable called session.thisuser; want encrypt string value , append incoming url. however, if this:

<cfinclude template="#arguments.targetpage#&x=#myencryptedstring#">

it says can't find included page.

i tried this:

<cfset zval = url.z>
<cfinclude template="#arguments.targetpage#?z=#zval#&x=#myencryptedstring#">

which didn't work either.

so, onrequest() method passed-in url variables, , how can append other url variables outgoing targets?

thanks.

updated question: essentially, know correct syntax adding url variables arguments.targetpage within onrequest() method. no, not straightforward adding string end of it; doesn't work. please explain. thanks.

you cannot add url parameters page in cfinclude. attribute template logical path cf page.
don't confused cflocation ?
if need include page , pages process url variables, define before include page (using cf or cfparam) :
<cfset url.z=value1>
<cfset url.x=value2>
<cfinclude template="#arguments.targetpage#>

regards


More discussions in Advanced Techniques


adobe

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums