seems to me that using :

        StructInsert(request,"akey", session);    

is far better. and to use : 

        StructAppend(session,Duplicate(request.akey));  

to copy back into the session scope.

?

-----Original Message-----
From: Matt Horn [mailto:[EMAIL PROTECTED]]
Sent: 17 October 2002 11:02
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Good/Bad?


no

you should drop the scope to request when you want to use the values

http://www.macromedia.com/v1/handlers/index.cfm?ID=17318&Method=Full

read that


Matt


At 10:57 17/10/02 +0100, you wrote:
>so, if you edit the session variable in the session scope, it is edited in
>the request scope.....ugly, damn ugly.
>
>-----Original Message-----
>From: Matt Horn [mailto:[EMAIL PROTECTED]]
>Sent: 17 October 2002 10:58
>To: [EMAIL PROTECTED]
>Subject: RE: [ cf-dev ] Good/Bad?
>
>
>
>what this does is copy the value of the session variables down into a
>request scope so you don't have to lock more than once
>
>it makes a "local copy" of the session vars
>
>AFAIK
>
>
>At 10:54 17/10/02 +0100, you wrote:
> >is it not simply making the session available to the application to talk
to
> >with request scope?
> >
> >Colm Brazel MA
> >CB Publications
> >
> >www.cbweb.net <http://www.cbweb.net>
> >[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> >[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> >
> >-----Original Message-----
> >From: Tom Smith [mailto:[EMAIL PROTECTED]]
> >Sent: 17 October 2002 10:48
> >To: [EMAIL PROTECTED]
> >Subject: Re: [ cf-dev ] Good/Bad?
> >
> >
> >wont that just create a link to the session?  surely duplicate() is much
> >better?  or have I gone mad...  and readonly lockwill suffice.  oh and
the
> >timeout is a little excessive, it shouldn't ever reach that level, and
>users
> >shouldn't have to wait 45 seconds even if it needs to be that long...  if
>it
> >needs to be that long, I'd thing about rewriting the while site.
> >----- Original Message -----
> >From: "Robertson-Ravo, Neil (REC)" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, October 17, 2002 10:23 AM
> >Subject: [ cf-dev ] Good/Bad?
> >
> >
> > > I have just discovered this piece of code in a 3rd party CT..  its for
> > > copying session vars into the request scope.
> > >
> > > <cfcase value="session2request">
> > > <cflock scope="SESSION" type="EXCLUSIVE" timeout="45">
> > > <cfloop collection="#session#" item="key">
> > > <cfset request[key] = session[key]>
> > > </cfloop>
> > > </cflock>
> > > </cfcase>
> > >
> > > N
> > >
> > > --
> > > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> > >
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > For human help, e-mail: [EMAIL PROTECTED]
> >
> >__________________________________________________ Do You Yahoo!?
>Everything
> >you'll ever need on one web page from News and Sport to Email and Music
> >Charts http://uk.my.yahoo.com
> >--
> >** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >For human help, e-mail: [EMAIL PROTECTED]
> >
> >---
> >Incoming mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
> >
> >---
> >Outgoing mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
> >
> >
> >--
> >** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >For human help, e-mail: [EMAIL PROTECTED]
>
>
>--
>** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>For human help, e-mail: [EMAIL PROTECTED]
>
>--
>** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>For human help, e-mail: [EMAIL PROTECTED]


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to