sounds about right! - Kinley
>From: "Gyrus" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: CF-Talk <[EMAIL PROTECTED]> >Subject: Re: Session and Client Variables >Date: Wed, 14 Nov 2001 18:26:41 -0000 > > > Hi Folks, i'm prepping for the cf exam and i'm lacking a good >understanding > > of the difference between client and session variables. It seems that >they > > both are capable of doing the same thing. When and why should/would i >use > > one or the other? What apps have you used client vars for and not >session > > vars for and visa versa and why? Thanks for any help. > >As I understand it, the key difference is that session variables >timeout. Client variables are tied to a specific client, session variables >are tied to a specific client *and last for a specific period of time after >the last request from that client to a specific application*. This >timeout period is controlled in CF Admin, or in the CFAPPLICATION >tag in application.cfm. > >I use session variables mostly for password-protected areas (usually >backend CMS's) that need the finite login time for security reasons. >I never really used client variables. I suppose I could provide the >option to "remember me next time" when users login, and this is a >good example of the difference I suppose: > >- Normal login = session variables, and if you leave the app for >20 mins (or whatever), you will have to login again. > >- "Remember me" login = client variables, and as long as the connected >cookies remain on the client, you won't have to login to get into >the app. > >hth, > >- Gyrus > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

