thank's Joel, i did that method to insert the asp script that launch the api, (in fact it seems to be a cgi script written in vbscript). but it works.
but i have another pb, the api is for an e-business site that make a transaction by card in SSL format. the transaction result is returned in session that i must read with a cgi script (in vbscript). do you know how to read the session values in cfm ? it is the oposite question of the first one (i'm trying resolving this for 4 hours) thank's in advance. lje ----- Original Message ----- From: "Joel Parramore" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, January 09, 2002 4:18 PM Subject: RE: cf and cgi session variables compatibility > Session variables in CF are not automatically passed along to either CGI > or > ASP scripts. ASP scripts in particular have a "Session" scope, but that > does not connect to CF's Session scope at all. If the script needs any C > F > session variables, then you need to manually pass them along when your co > de > calls that script. If you're calling the ASP script using CFHTTP, you c a > n > pass the session variables along as URL or FORM parameters (COOKIE > parameters also, but let's keep it simple). In either case, they'll be > available in the ASP script's Request scope. An example using FORM > parameters: > > > CF code: > <CFLOCK ...> <!--- since we're accessing a shared scope, even for a rea > d, > we'll need a lock. ---> > <CFSET var1 = session.var1> > <CFSET var2 = session.var2> > </CFLOCK> > <CFHTTP > URL="http://www.myservername.com/myscriptname.asp?var1=#var1&var 2=# > var2#"> > <CFHTTPPARAM TYPE="FORMFIELD" NAME="var1" > VALUE="#URLEncodedFormat(var1)#"> > <CFHTTPPARAM TYPE="FORMFIELD" NAME="var2" > VALUE="#URLEncodedFormat(var2)#"> > </CFHTTP> > > ASP code: > <% > numb1=Request("var1") > numb2=Request("var2") > .. > %> > > Regards, > Joel Parramore > > > > -----Original Message----- > > From: loic jegouzo [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, January 09, 2002 9:35 AM > > To: CF-Talk > > Subject: cf and cgi session variables compatibility > > > > > > hello, > > > > i have pb with cf session variables. > > i have created two numeric session variables in cf (the site is > > in cf) that > > i need in a cgi script wich launch an api. but these variables seem no t > to > > be recognized by the cgi script. with an asp example that i have > > there is no > > pb. > > > > in cf i have created session.var1, session.var2 > > in the cgi script the syntax is > > <% > > numb1=session("var1") > > numb2=session("var2") > > .. > > %> > > > > do you know if it's normal (compatibility problem) or if there is > > 'something' to do ? > > > > > > > > lje > > > ______________________________________________________________________ Why Share? Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

