The remote file of a XMLHttp request (Spry) among other things is trying to set 
two sessions.variables.

I have been told that if the remote file doesn't know the session CFID & 
CFTOKEN the new session variables wil not be recognized, and to avoid that I 
should use URLSessionFormat.

Now, my original Spry request look like this:

var request_URL 
="/petitions/client/remote/authenticate.cfm?username="+uName+"&password="+uPass;
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:

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

The variable "request_URL" will render:
"/petitions/client/remote/authenticate.cfm;jsessionid=7e301d2f98475b4d5f10?username="+uName+"&password="+uPass&CFID=300&CFTOKEN=11985066"

which causes Spry to catch an exception while loading the url and the request 
fails altogether.

Please note the " ; " semicolumn sign between the filename "authenticate.cfm" 
and "jsessionid=" which is not like
CF7.1 example "myactionpage.cfm?jsessionid=xxxx;cfid=xxxx&cftoken=xxxxxxxx" 
found in livedocs.

Is either my code, macromedia example, or both wrong?
Or maybe it needs some tweaking and fixing to replace the semicolumn and put 
the question mark in the right place?

Pulling quite a few hair here. Thanks for helping.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:257660
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to