Walter,

The problem is below is a URL derived from JavaScript code:

>var request_URL
>="/petitions/client/remote/authenticate.cfm?username="+uName+"&password="+u
>Pass;
>Spry.Utils.loadURL("GET", request_URL, false, authBack);
>
>which returns values as expected but does not set the session variables, so
>I combine it with URLSessionFormat, like this:

When you wrapped the Url in the urlSessionFormat() function, you actually
wrapped your JS code--which won't work.

>var request_URL =
>'#URLSessionFormat("/petitions/client/remote/authenticate.cfm?username='+uN
>ame+'&password='+uPass+'")#';
>
>The variable "request_URL" will render:
>"/petitions/client/remote/authenticate.cfm;jsessionid=7e301d2f98475b4d5f10?
>username="+uName+"&password="+uPass&CFID=300&CFTOKEN=11985066"

Switch the code to:

var request_URL =
'#urlSessionFormat("/petitions/client/remote/authenticate.cfm")#&username='
+ uName + '&password=' + uPass;

This takes the JavaScript out of the portion of the Url and allows CF to
correctly apply the session url information if it's needed--but it will
still append the JS information you need.

-Dan


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257674
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to