I'd actually recommend using the following code in application.cfm to
convert your session variables to client variables, and in cf adminstrator,
save the client variables in the databse instead of the registry.

<cfloop collection="#session#" item="myVar">
                <cfset "CLIENT.SESSION.#myVar#" = #evaluate("session." &
"#myvar#")#>
</cfloop>

What we're doing is creating a client variable that's sort of a structure
called session.  Therefore for each session.whatever, you'll have
client.session.whatever

When you configure cf to stored client variables in the database, two tables
will be created:

CDATA
CGLOBAL

In CDATA, there's: cfid, app, data

I belive cfid stores the cfid and cftoken as cfid:cftoken format.  You can
capture these two values through asp:

myID = Request.cookies ("cfid") & ":" & Request.cookies ("cftoken")

>From there, the app name is whatever you specified in <cfapplication> tag in
application.cfm(Most of the time).

The data will be all of your session variables.  You're gonna have to parse
through them yourself.

As for sending them back...  Good luck.  Perhaps you could use the same
technique in global.asa to move the session variables over through the use
of fancy cookies and such.  Perhaps push the session variables to cookies
and have cf capture those cookies...

Good luck.  I'm trying the same thing with .NET right now.  



-----Original Message-----
From: Kevin Derby [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 20, 2001 1:07 PM
To: CF-Talk
Subject: Pass content to/from ASP page


What's the most effective way to pass variable content between a CFM and ASP
page?  In the same vein, is there any way for CFM to see ASP/IIS session
variables, or is that exclusive to asp.dll?

    Kevin


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
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

Reply via email to