This is a great solution and one we use. I would suggest making them request variables though (easy access in custom tags)
Sam ----- Original Message ----- From: "Rich Wild" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, November 29, 2001 12:31 PM Subject: RE: 10 Step Program > Rather than eliminate all your session and application variables you could > write a custom tag that does all the locking for you and copies whatever > session or application variables you want into a local scope for your > delectation. > > eg: > > <cf_copySharedVars vars="session.adminID,session.name,application.dsn"> > > creates > > local.adminID > local.name > local.dsn > > without you having to expressly lock. > > I did this for an app that contained a *lot* of information in the app and > session scopes. It meant that I didn't have to write one lock in the entire > app (save for the initial custom tag). Worked a charm, and very fast too... > > > > -----Original Message----- > > From: Won Lee [mailto:[EMAIL PROTECTED]] > > Sent: 29 November 2001 17:19 > > To: CF-Talk > > Subject: 10 Step Program > > > > > > Hi my name is Won Lee and I'm addicted to session variables. > > > > In an attempt to rid myself of all locking, I'm trying to > > stay away from > > application and session variables. > > One of the most common things is used for session variables is > > session.userID. > > How does one now emulate this functionality without using > > session variables. > > I thought about just using cookies, but that would hinder use > > of cflocation. > > Any ideas? > > > > How do HTML websites handle session states? > > > > ===================== > > Not being a materialist in the U.S. is kind of like not > > appreciating opera > > if you live in Milan or art if you live in Paris. We support > > materialism > > better than any other culture. Because retailing and > > distribution are so > > efficient here, stuff is cheaper than anywhere else in the > > world. And then > > we have huge houses in which to archive our stuff. > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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

