Detect URL Variable - Set Session Variable
I have a partner that is going to pass a transactionid to me in the URL when a user clicks on an ad on their site.
Like this
www.mycompany.com/transactionid=12345abc8964
I need to postback variables to their site when a user converts.
I have that part coded already using CFHTTP.
My question what is the best way to detect that a user has entered my site with a transactionid and then be able to know that is the same user when they convert.
Is it something like this?
1. Detect transactionid when user enter website in application.cfc
2. If a transactionid is detected - set a session variable like session.transactionid = yes or session.transactionid=12345abc8964
3. If user converts - check for the existence of transactionid session variable.
4. if transactionid session variable exists - postback info the partner site
It almost seems too easy. So I'd thought I'd check with the ColdFusion geniuses.
