Gel
I think folks usually create session.sessionid equal to session.cftoken + session.cfid
in the application.cfm
I would suggest using CFLOCK SCOPE="SESSION" rather than named locks as then you can
turn on the CF admin strict
lock checker to be sure all session vars are locked.
Also I am not certain that if a session var appears in the CFLOCK tag itself, rather
than between the <CFLOCK> and
the </CFLOCK> that it is really locked...
If you don't have any structures or queries in the session vars it would be best to
convert to client vars (stored
in database rather than registry) as these don't need locks at all...
See http://www.cfug-md.org/articles/locking.cfm for more info.
- Michael Smith, TeraTech, Inc http://www.teratech.com/
Angel Stewart wrote:
> Morning morning! :)
>
> I had an interesting experience this morning while sneaking off to a PJ :)
>
> It seems that an application I have been hired to support is written in..
> <CF_DRUMROLL>
> FUSEBOX!
> </CFDRUMROLL>
>
> After I cried and whimpered infront the machine,much to the dismay of the
> client, I started to get into it..and found I understood the code layout
> fairly easily.
> (Good thing too with her leaning over my shoulder)
>
> Then came the time to set up some Sybase databases (never did it
> before..never want to do it again..it is Sybase 5.0..)
> and actually try to run the app as they received it from a now defunct
> development company....
>
> Best Believe....the thing refuse to run!
>
> It kept blowing on a CFLOCK statement: CFLOCK name=#session.sessionid# blah
> blah.
>
> Apparently, it was never finding this session variable session.sessionid.
> I could have sworn that was some sort of auto-generated session variable or
> something.
>
> ANyways..my nerves had run ragged and I couldn't think..so I went to the
> App_globals file and stuck a <CFSET session.sessionid ="ohgodspleasework">
> into there.(which elicited a giggle from the client....she has nice
> earlobes).
>
> That did the trick and i was able to get the thing up and running to show
> them..and my job of "installing the existing software as found on CDROM
> without code modifications" was complete. :-)
> Further analysis, changes and modifications will cost them extra ^_^
>
> I'll have to do some investigations on my own to figure out if what I did
> will cause those CFLOCKS to fail under certain circumstances..I can't
> understand why one would name the lock after a non-existant session variable
> which wasn't set anywhere, unless its like CFTOKEN or something that is
> always generated and passed along..???
> (*looks around nervously as his relative inexperience with CFLOCKING and
> Sessions shows*)
>
> This means, of course...that there is a nice shiny new AMD ATHLON 1.2 Ghz
> monster pc in my immediate future ^_^
> *raises bottle of Mackeson*
> You can all have some free muffins and cheesecake on me! ;-)
>
> Cheers! :)
>
> -Gel
> IMPORTANT: This email is intended for the use of the individual
> addressee(s) named above & may contain information that is confidential,
> privileged or unsuitable for overly sensitive persons with low self-esteem,
> no sense of humor or irrational religious beliefs. If you are not the
> intended recipient, any dissemination, distribution or copying of this email
> is not
> authorized either explicitly or implicitly) and constitutes an irritating
> social faux pas. Unless the word absquatulation
> has been used in its correct context somewhere other than in this warning,it
> does not have any legal or grammatical use & may be ignored.
>
> -----Original Message-----
> From: Erika L Walker [mailto:[EMAIL PROTECTED]]
>
> Well isn't everyone happy to see Monday?
> Did the CF-Underground thing this weekend and it was a pleasure to meet some
> of the people that post to this list and others. Looking forward to the next
> get-together.
>
> Kevin and I get the prize for driving the farthest (4+ hours) and Gel get
> the prize for prettiest skirt. Oh, wait. He wasn't there.... :-)
>
> Erika
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists