RE: I don't understand session locking :(

2001-08-09 Thread Dennis Powers
://www.uxbinfo.com/ -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Monday, August 06, 2001 7:14 PM To: CF-Talk Subject: RE: I don't understand session locking :( Yes, you need to place a lock around any reads or writes of Session variables. If you don't lock reads as well

RE: I don't understand session locking :(

2001-08-09 Thread Matthew W Jones
PROTECTED]] Sent: Thursday, August 09, 2001 9:07 AM To: CF-Talk Subject: RE: I don't understand session locking :( Maybe I am being a curmudgeon today, but it seems to me that if you ALWAYS need to lock session and application variables and would never want to use them without locks then Allaire

RE: I don't understand session locking :(

2001-08-09 Thread Dave Watts
Maybe I am being a curmudgeon today, but it seems to me that if you ALWAYS need to lock session and application variables and would never want to use them without locks then Allaire should have coded that function into it's core design. Maybe so. I can't speak to that, since I don't know

RE: I don't understand session locking :(

2001-08-09 Thread Mike Brunt
): MediaEmbee MSN: [EMAIL PROTECTED] Yahoo: MediaEmbeeYH -Original Message- From: Dennis Powers [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 09, 2001 7:07 AM To: CF-Talk Subject: RE: I don't understand session locking :( Maybe I am being a curmudgeon today, but it seems to me

RE: I don't understand session locking :(

2001-08-09 Thread Tyson
: Thursday, August 09, 2001 9:24 AM To: CF-Talk Subject: RE: I don't understand session locking :( had they done that, it likely would have placed a lock around each individual use. which would have been hard on performance. as they left it, you control what to lock, which allows you to place a single

RE: I don't understand session locking :(

2001-08-09 Thread Chris Norloff
://www.uxbinfo.com/ -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Monday, August 06, 2001 7:14 PM To: CF-Talk Subject: RE: I don't understand session locking :( Yes, you need to place a lock around any reads or writes of Session variables. If you don't lock reads as well

cfset and/or Duplicate() [was:RE: I don't understand session locking :(

2001-08-08 Thread Chris Norloff
:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 10:01 AM Subject: RE: I don't understand session locking :( Wouldn't you actually need to use the Duplicate() function here when referencing the session variable? I seem to recall past discussions that the process of making a copy in this way

RE: cfset and/or Duplicate() [was:RE: I don't understand session locking :(

2001-08-08 Thread Dave Watts
We're right in the throes of this, too. We've been operating under the understanding that using Duplicate() was necessary ONLY when dealing with complex variables. Thus, cfset request.variablename = session.variablename would work fine as long as session.variablename is not complex.

RE: cfset and/or Duplicate() [was:RE: I don't understand session locking :(

2001-08-08 Thread Hinojosa, Robert A
: Chris Norloff [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 12:42 PM To: CF-Talk Subject: cfset and/or Duplicate() [was:RE: I don't understand session locking :( We're right in the throes of this, too. We've been operating under the understanding that using Duplicate() was necessary

RE: I don't understand session locking :(

2001-08-07 Thread Tyson
Subject: RE: I don't understand session locking :( Question here as well I have done locks when ever I set a Session var. Do I have to use a lock when ever I use the var? i.e: CFLOCK type=readonly scope=session CFSET session.bgcolor = blue /CFLOCK body bgcolor

RE: I don't understand session locking :(

2001-08-07 Thread Ken Wilson
Wouldn't you actually need to use the Duplicate() function here when referencing the session variable? I seem to recall past discussions that the process of making a copy in this way actually only created a pointer to the session variable and left you vulnerable to the locking issue. Using

RE: I don't understand session locking :(

2001-08-07 Thread Matthew W Jones
Yes -Original Message- From: Ken Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 10:01 AM To: CF-Talk Subject: RE: I don't understand session locking :( Wouldn't you actually need to use the Duplicate() function here when referencing the session variable? I seem

RE: I don't understand session locking :(

2001-08-07 Thread Bruce, Rodney
Changing from session to client Are there any limitations on client vars, other than db size? Could structures and arrays be a problem? Looking at the table, cdata, the client vars are all dumped into one field, can this be changed? and is there a way to automatically delete them when a user

RE: I don't understand session locking :(

2001-08-07 Thread David Shadovitz
:[EMAIL PROTECTED]] wrote: Yes -Original Message- From: Ken Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 10:01 AM Subject: RE: I don't understand session locking :( Wouldn't you actually need to use the Duplicate() function here when referencing the session variable

RE: I don't understand session locking :(

2001-08-07 Thread Dave Watts
Wouldn't you actually need to use the Duplicate() function here when referencing the session variable? I seem to recall past discussions that the process of making a copy in this way actually only created a pointer to the session variable and left you vulnerable to the locking issue.

RE: I don't understand session locking :(

2001-08-07 Thread Matt Robertson
Aren't all session vars stored as structures, regardless of their actual contents? Wouldn't this necessitate duplicate() everywhere regardless of var contents? --Matt-- -- Original Message -- from: David Shadovitz [EMAIL PROTECTED] Reply-To: [EMAIL

RE: I don't understand session locking :(

2001-08-07 Thread Dave Watts
Changing from session to client Are there any limitations on client vars, other than db size? Could structures and arrays be a problem? Yes. If you want to store structures, arrays or queries in the Client scope, you'll have to convert them to strings; you can easily do this with WDDX.

RE: I don't understand session locking :(

2001-08-07 Thread Dave Watts
Aren't all session vars stored as structures, regardless of their actual contents? Wouldn't this necessitate duplicate() everywhere regardless of var contents? If you want to pass the session variable itself (with its contents) by value, you'd need to use Duplicate. If you want to pass a

RE: I don't understand session locking :(

2001-08-07 Thread Tyson
Correct. Thanks for the clarification. :) -Tyson -Original Message- From: Ken Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 10:01 AM To: CF-Talk Subject: RE: I don't understand session locking :( Wouldn't you actually need to use the Duplicate() function here

RE: I don't understand session locking :(

2001-08-07 Thread Tyson
dealing with complex nested data structures in WDDX, it's very easy to bump over 4kb in size with a WDDX packet. -Tyson -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 1:31 PM To: CF-Talk Subject: RE: I don't understand session locking

RE: I don't understand session locking :(

2001-08-07 Thread Matt Robertson
Thx Dave. Looks like your original answer and my question came in right at about the same time. Nice to have this finally clarified. Have been using duplicate to be on the safe side. Is there a performance penalty associated w/using the function? Typically I only use 3 or 4 session vars

RE: I don't understand session locking :(

2001-08-07 Thread Bruce, Rodney
To: CF-Talk Subject: RE: I don't understand session locking :( Additionally, if you convert complex data structures into WDDX, that will work well if your client vars are being stored in a datasource. However, if you're using cookies as you means of storing client variables, you'll need

RE: I don't understand session locking :(

2001-08-07 Thread Dave Watts
Is there a performance penalty associated w/using the function? Typically I only use 3 or 4 session vars w/simple strings if used at all, tho' they're often duped in application.cfm, so if I can speed things up... I don't know if there is, but I doubt that it would be significant in any

RE: I don't understand session locking :(

2001-08-07 Thread Dave Watts
Additionally, if you convert complex data structures into WDDX, that will work well if your client vars are being stored in a datasource. However, if you're using cookies as you means of storing client variables, you'll need to be careful. Each cookie has a limit of 4kb in size. If you

RE: I don't understand session locking :(

2001-08-07 Thread Kevin Miller
. -Original Message- From: Tyson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 11:52 AM To: CF-Talk Subject: RE: I don't understand session locking :( Additionally, if you convert complex data structures into WDDX, that will work well if your client vars

RE: I don't understand session locking :(

2001-08-06 Thread Bruce, Rodney
Question here as well I have done locks when ever I set a Session var. Do I have to use a lock when ever I use the var? i.e: CFLOCK type=readonly scope=session CFSET session.bgcolor = blue /CFLOCK body bgcolor=#session.bgcolor# Are you saying I need to place

RE: I don't understand session locking :(

2001-08-06 Thread Dave Watts
I have done locks when ever I set a Session var. Do I have to use a lock when ever I use the var? i.e: CFLOCK type=readonly scope=session CFSET session.bgcolor = blue /CFLOCK body bgcolor=#session.bgcolor# Are you saying I need to place a lock around the

Re: I don't understand session locking :(

2001-08-06 Thread Todd Ashworth
understand session locking :( Question here as well I have done locks when ever I set a Session var. Do I have to use a lock when ever I use the var? i.e: CFLOCK type=readonly scope=session CFSET session.bgcolor = blue /CFLOCK body bgcolor=#session.bgcolor# Are you saying I need