It depends. :) I mean seriously - consider your example of a session
variable for a hit counter. If you don't lock it, I could in theory
open a bunch of tabs and make that # inaccurate. So, um, who cares?
I've made my own hit count high. Unless you are running a contest, it
doesn't matter.

So my real point is - if the # isn't critical (like you are working
for NASA), then I wouldn't worry about the locking.

On 7/17/07, Peterson, Chris <[EMAIL PROTECTED]> wrote:
> Eek, I don't know that I agree with you on that one Ray.  If you really
> don't care if the viewed page stats is accurate, why bother coding it at
> all?  Maybe I'm just bitter, because I do internal reporting and have to
> prove my numbers to the nth degree, but I would never put out a number I
> thought wouldn't be 100% accurate.
>
> Just my $.02!
>
>
>
> Chris Peterson
> Gainey IT
> Adobe Certified Advanced Coldfusion Developer
> -----Original Message-----
> From: Raymond Camden
> Sent: Tuesday, July 17, 2007 12:50 PM
> To: CF-Talk
> Subject: Re: Session Variable Types
>
> On 7/17/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:
> > On Tuesday 17 Jul 2007, [EMAIL PROTECTED] wrote:
> > > Although he said he'd heard you didn't need to lock j2ee session
> variables.
> >
> > Oh dear...
> > <cfset session.inaccurateCountOfPagesViewed =
> >         session.inaccurateCountOfPagesViewed + 1 />
> > :-)
>
> Of course, one could argue that a stat like that may not be important
> enough for a lock. If you were simply reporting your pages viewed then
> you could can probably just not worry about it.
>
> --
> ========================================================================
> ===
> Raymond Camden, Camden Media
>
> Email    : [EMAIL PROTECTED]
> Blog      : ray.camdenfamily.com
> AOL IM : cfjedimaster
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283940
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to