coldfusion - URL parameters blown away by CFLOGIN? -


i'm trying use cflogin code modified described on adobe cflogin documentation page demo application.

the application sends email user containing link like: [theurl]/loggedin/addplayertomatch.cfm?match_id=[theid]

if user logged in, clicking link works great. if they're not logged in, application.cfc includes loginform.cfm appropriately, login form action points to:

<form action="#cgi.script_name#?#cgi.query_string#" method="post">  

(the query string still includes match_id parameter @ point). when submit login form, though, page url ends looking like:

[theurl]/loggedin/addplayertomatch.cfm?cfid=5833675&cftoken=7f75c4fe49d10887-f39d4788-d376-1349-e971b9c4122031a0 

the match_id parameter has been lost, replaced cfid & cftoken. demo purposes, don't mind cfid & cftoken joining in fun, did match_id url parameter go & how can back?

note: there aren't cflocations in application.cfc or loginform.cfm.

thanks!

it looks clientmanagement enabled on application. try turning off if not needed , see if cfid etc. won't overwrite own querystring.

alternatively, try grabbing querystring @ beginning of onrequeststart like:

<cfset request.qstring = listlast(request,"?")>  

then append form action this:

<form action="#cgi.script_name#?#cgi.query_string#&request.qstring" method="post"> 

for more info on clientmanagment:


Comments