Re: Session Variable Types

2007-07-18 Thread Jochem van Dieten
Dave Watts wrote: > > For example, in a database, you may want to determine the average value of a > column, in a table that has a million rows. The SQL to do this is quite > easy, but by default it will prevent write access to those rows while the > query is running. Only in MS SQL Server. In da

Re: Session Variable Types

2007-07-18 Thread Raymond Camden
I think Dave answered it well. I think the Users Online thing is another example. If you have, on average, 200 users on your site, and you are only showing it for "ego reasons", then why not let it be a few off? On 7/18/07, Dave Watts <[EMAIL PROTECTED]> wrote: > > Still, I don't get the whole con

RE: Session Variable Types

2007-07-18 Thread Dave Watts
> Still, I don't get the whole concept of "If it's not that > important, don't lock it"... because.. if it's not that > important, and you know the numbers might be inaccurate, why > do it at all? The cost of locking may outweigh the value of an individual data point. For example, in a databas

Re: Session Variable Types

2007-07-18 Thread Rick Root
On 7/17/07, John Paul Ashenfelter <[EMAIL PROTECTED]> wrote: > > Or if it's *really* worth reporting, get it from a reliable source. > For example, maybe from the webserver log, which is a lot less > ambigious than a session/application/etc-based counter. Let's not even > get into dealing with clus

Re: Session Variable Types

2007-07-17 Thread John Paul Ashenfelter
t; > thought wouldn't be 100% accurate. > > > > Just my $.02! > > > > > > > > Chris Peterson > > Gainey IT > > Adobe Certified Advanced Coldfusion Developer > > -Original Message- > > From: Raymond Camden > > S

Re: Session Variable Types

2007-07-17 Thread Raymond Camden
> > > > 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 <[E

Re: Session Variable Types

2007-07-17 Thread Brian Kotek
It's the ability to replicate the sessions across a cluster that is the crucial difference between J2EE session and non-J2EE sessions. On 7/17/07, Rick Root <[EMAIL PROTECTED]> wrote: > > Either way, it's not *THAT* different from regular coldfusion session > variables, except that the session CO

Re: Session Variable Types

2007-07-17 Thread Charlie Griefer
true... it shows that i've not yet fully embraced Application.cfc, eh? :) On 7/17/07, Raymond Camden <[EMAIL PROTECTED]> wrote: > I think you should be a bit careful on wording here. Doing structClear > on a session will NOT timeout the session. It just removes the data in > it. So for example, o

Re: Session Variable Types

2007-07-17 Thread Jochem van Dieten
Peterson, Chris 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 ne

Re: Session Variable Types

2007-07-17 Thread Charlie Griefer
On 7/17/07, Rick Root <[EMAIL PROTECTED]> wrote: > On 7/17/07, Charlie Griefer <[EMAIL PROTECTED]> wrote: > > > > J2EE sessions end on browser close. traditional cf sessions do not. > > Is that documented somewhere? http://livedocs.adobe.com/coldfusion/7/htmldocs/1163.htm (again tho... make

Re: Session Variable Types

2007-07-17 Thread Rick Root
On 7/17/07, Charlie Griefer <[EMAIL PROTECTED]> wrote: > > to clarify on that... there is one point of contention in the comments > section of the docs regarding this... > > http://livedocs.adobe.com/coldfusion/7/htmldocs/1163.htm that's interesting. I have to agree that the session does NOT

Re: Session Variable Types

2007-07-17 Thread Charlie Griefer
aye... On 7/17/07, Brian Kotek <[EMAIL PROTECTED]> wrote: > Just a note that it's also easy to make normal CF sessions end on browser > close by copying the cfid and cftoken cookie into a session-only cookie. > It's about 4 lines of code. > > On 7/17/07, Ben Doom <[EMAIL

RE: Session Variable Types

2007-07-17 Thread Peterson, Chris
umber 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 Chivert

Re: Session Variable Types

2007-07-17 Thread Brian Kotek
Just a note that it's also easy to make normal CF sessions end on browser close by copying the cfid and cftoken cookie into a session-only cookie. It's about 4 lines of code. On 7/17/07, Ben Doom <[EMAIL PROTECTED]> wrote: > > Charlie Griefer wrote: > > J2EE sessions end on browser close. traditi

Re: Session Variable Types

2007-07-17 Thread Charlie Griefer
On 7/17/07, Ben Doom <[EMAIL PROTECTED]> wrote: > Charlie Griefer wrote: > > J2EE sessions end on browser close. traditional cf sessions do not. > Now that's some useful information. > All I have to do is figure out how it can be useful in my immediate > future to clarify on that... there i

Re: Session Variable Types

2007-07-17 Thread Raymond Camden
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... > session.inaccurateCountOfPagesViewed + 1 /> > :-) Of course, one could argue that a stat

Re: Session Variable Types

2007-07-17 Thread Rick Root
On 7/17/07, Charlie Griefer <[EMAIL PROTECTED]> wrote: > > J2EE sessions end on browser close. traditional cf sessions do not. Is that documented somewhere? Rick ~| ColdFusion 8 beta – Build next generation applications today

Re: Session Variable Types

2007-07-17 Thread Rick Root
On 7/17/07, Raymond Camden <[EMAIL PROTECTED]> wrote: > > 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. Remember the 90s, when page views were all impo

Re: Session Variable Types

2007-07-17 Thread Ben Doom
Charlie Griefer wrote: > J2EE sessions end on browser close. traditional cf sessions do not. Now that's some useful information. All I have to do is figure out how it can be useful in my immediate future --Ben Doom ~| Co

Re: Session Variable Types

2007-07-17 Thread Raymond Camden
I think you should be a bit careful on wording here. Doing structClear on a session will NOT timeout the session. It just removes the data in it. So for example, onSessionEnd will not fire. On 7/17/07, Charlie Griefer <[EMAIL PROTECTED]> wrote: > Rick: > > even if there weren't any differences fro

RE: Session Variable Types

2007-07-17 Thread Dave Watts
> Although I'm aware of j2ee session variables, it never > occurred to me to consider that someone might consider them a > different type of session variable, so I totally didn't > understand the question. He did finally tell me about the > two "types" of session variables. As you say, they a

Re: Session Variable Types

2007-07-17 Thread James Holmes
J2EE sessions also automatically end (for the user) when the browser is closed instead of persisting, as J2EE sessions are tracked with session (i.e. in-memory) cookies rather than persistent ones. On 7/17/07, Rick Root <[EMAIL PROTECTED]> wrote: > Well, the interviewer was actually asking if I us

Re: Session Variable Types

2007-07-17 Thread Tom Chiverton
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... :-) -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limit

Re: Session Variable Types

2007-07-17 Thread Rick Root
On 7/17/07, Brian Kotek <[EMAIL PROTECTED]> wrote: > Personally, it's a terrible question. I'd say something like: > > That question needs clarification. Do you mean possible categories of > session variables availabe in ColdFusion, such as standard vs. J2EE? Or do > you mean kinds of data one migh

Re: Session Variable Types

2007-07-17 Thread Charlie Griefer
Rick: even if there weren't any differences from a coding standpoint, the fact that you can choose between the two still suggests that they are different (at least different enough that the choice is there). J2EE sessions end on browser close. traditional cf sessions do not. you can time out a

Re: Session Variable Types

2007-07-17 Thread Brian Kotek
Correct, the J2EE session variables are required to replicate them across a cluster. However, whether you need to lock them or not has nothing to do with the type of session variable you choose, but on the potential for race conditions in the code itself. On 7/17/07, Rick Root <[EMAIL PROTECTED]>

Re: Session Variable Types

2007-07-17 Thread Rick Root
Well, the interviewer was actually asking if I used j2ee session variables, to which I would've quickly answered "no" But as far as coldfusion is concerned, There's only one type of session variables. Those are variables placed in the session scope. Whether or not they are J2EE session variable

Re: Session Variable Types

2007-07-17 Thread Brian Kotek
Personally, it's a terrible question. I'd say something like: That question needs clarification. Do you mean possible categories of session variables availabe in ColdFusion, such as standard vs. J2EE? Or do you mean kinds of data one might choose to store in a persistent scope, such as shopping ca

Re: Session Variable Types

2007-07-17 Thread Dominic Watson
t; boolean on Sundays > > etc. > > > > > - Original Message - > From: "Rick Root" <[EMAIL PROTECTED]> > To: "CF-Talk" > Sent: Tuesday, July 17, 2007 1:28 PM > Subject: Re: Session Variable Types > > > > I'd like to

Re: Session Variable Types

2007-07-17 Thread Tom Chiverton
On Tuesday 17 Jul 2007, you wrote: > I'd like to see a few more answers to this one before I post the "answer" "Things like the users recent report requests" -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwell

Re: Session Variable Types

2007-07-17 Thread Michael Traher
those based on cfid and cftoken and those based on jsessionid from the j2ee server. that would be my answer and on the whole I favour jsessionid and would blah blah about that for a bit! On 7/16/07, Rick Root <[EMAIL PROTECTED]> wrote: > > I had an interviewer ask me the following question. > > "

Re: Session Variable Types

2007-07-17 Thread exH
Er.. strings, numeric, structures, queries, arrays, date, boolean on Sundays etc. - Original Message - From: "Rick Root" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Tuesday, July 17, 2007 1:28 PM Subject: Re: Session Variable Types > I'd like to

Re: Session Variable Types

2007-07-17 Thread Rick Root
I'd like to see a few more answers to this one before I post the "answer" I had an interviewer ask me the following question. "What types of session variables do you use?" Before reading any of the responses to this thread, I'd like to know how you would answer that question.

Re: Session Variable Types

2007-07-16 Thread Mark Mandel
Do you mean ColdFusion in built scopes, or custom ones? ...and then answer from there On 7/17/07, Claude Schneegans <[EMAIL PROTECTED]> wrote: > >>how you would answer that question. > > "Any type I'd need, depending on the project..." > > -- > ___ > REUSE COD

Re: Session Variable Types

2007-07-16 Thread Claude Schneegans
>>how you would answer that question. "Any type I'd need, depending on the project..." -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~~~

Re: Session Variable Types

2007-07-16 Thread Josh Nathanson
> "What types of session variables do you use?" I'd say "the kind that stay in RAM when you are using session management and you navigate from page to page in a web application." -- Josh ~| Create Web Applications With ColdFu

Re: Session Variable Types

2007-07-16 Thread Charlie Griefer
traditional/J2EE On 7/16/07, Rick Root <[EMAIL PROTECTED]> wrote: > I had an interviewer ask me the following question. > > "What types of session variables do you use?" > > Before reading any of the responses to this thread, I'd like to know > how you would answer that question. > > Rick > > ~~

Re: Session Variable Types

2007-07-16 Thread Phillip M. Vector
Application. Are their others? :) Rick Root wrote: > I had an interviewer ask me the following question. > > "What types of session variables do you use?" > > Before reading any of the responses to this thread, I'd like to know > how you would answer that question. > > Rick > > ~

Session Variable Types

2007-07-16 Thread Rick Root
I had an interviewer ask me the following question. "What types of session variables do you use?" Before reading any of the responses to this thread, I'd like to know how you would answer that question. Rick ~| Create robust en