Pretty sure you cannot do this apart from writing the ASP session vars
to a cookie or doing an elaborate cfhttp to get the ASP session ID
from the page header and then using CF to call an ASP web service with
said cookie ID which could then give CF the values.
The ASP session vars live in a very different place from CF ones and
shouldn't be contained in the headers of an ASP page called over CF HTTP
>
> also if I include the asp file in my cfm its just importing the whole
> codes, is there any other way that I can include the execute type
> thing coldfusion template?
Again, as far as i know, no... you could use some sort of frame within
your CF page to include it as an executed ASP file (ie a frame or an
IFRAME)
<cfhttp method = "get" url = "" throwonerror="no" redirect="yes"
resolveurl="yes" useragent="#CGI.HTTP_User_Agent#">
</cfhttp>
<cfif IsDefined('cfhttp.responseHeader.Location') AND
#cfhttp.responseHeader.Location# NEQ "">
<cfoutput>#cfhttp.responseHeader.Location#</cfoutput><BR>
<cfoutput>#cfhttp.header#</cfoutput><BR>
<cfoutput>#cfhttp.statuscode#</cfoutput><BR>
<!--- <cflocation url="" addtoken="no">
--->
<cfelse>
<cfoutput>#cfhttp.FileContent#</cfoutput>
</cfif>
The CFHTTP call is calling a page but you would need to know the ASP
session ID and pass it with your CFHTTP to get access to the ASP session
vars on the ASP page.
It is always redirecting because thro the CFHTTP call, you are no longer
the user but just a random HTTP call to it..... i think!
I'd look at cfhttpparam but never used it myself and as said, you'll
need to get the ASP session ID from a cookie or something to make that
work... never done anything like that so guessing off the top of my
head.
Dunno if that helps any.... Anybody else know better?
--
dc
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

