> I copied the set of session variables to the variables scope using > > <cfset variables.foo = duplicate(session)> > > then I make a new app using a cfapplication tag. I then copy the > variables scope to my new applications session using: > > <cfset session = duplicate(variables.foo)> > > When I do the test StructKeyExists(session,'dn'), it fails, > saying it does not exist. But when I output it, it outputs fine. > > Is this because it's just putting it into a variable called session, > not in the session scope? If so, how would I get "whatever" is in > the variables scope into the session scope?
Yes, that's why you're running into this problem. You're writing to Variables.Session, not Session. To make what you're trying to do easier, I recommend that you store all your session data within a structure, then copy that structure around as needed. There are two reasons for this. First, if you don't do that, you'll have to loop over your session variables to write them to the Session scope. Second, the Session scope contains some data you wouldn't want to overwrite, like the token values used to match a session with a browser. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221512 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

