At 07:16 AM 5/2/2002 -0400, you wrote: >How about... > ><cfif listFind(cookie.displayGroups, "Mike")> > do stuff ></cfif> > >There is also listFindNoCase(). > >If these groups are related to security for your application, I would >suggest storing them elsewhere,
Database? >or encrypting the text if it MUST be in a >cookie. I do store the groups into a database at initial logon. I just put it into a cookie so they are active until the session closes. I thought it was easier this way. I'm not sure what you mean by encrypting the text...how? >Cookies are fairly easy to modify on most browsers and someone >could easily put themselves in the "Administrator" group. How would someone go about this? >-Justin Scott, Lead Developer > Sceiron Internet Services, Inc. > http://www.sceiron.com > > >----- Original Message ----- >From: "phumes1" <[EMAIL PROTECTED]> >To: "CF-Talk" <[EMAIL PROTECTED]> >Sent: Thursday, May 02, 2002 7:07 AM >Subject: Re: Check for text within cookie...Help! > > > > Hi, > > > > I'm setting a cookie that can contain 1-10 different groups. For example: > > > > <cfoutput> > > #COOKIE.DisplayGroups# > > </cfoutput> > > > > Output: > > ---------- > > > > Administrator,Users,Power Users,Mike,Paul,Dave,Sarah > > > > > > I would like to check the "COOKIE.DisplayGroups" for one of the above >groups. > > > > If COOKIE.DisplayGroups = Mike > > ---code here --- > > endif > > > > I've tried using <cfif ListLen() but it looks for an EXACT match not just > > only one of the above occurrences. > > > > I have tried numerous syntaxs but just can't get it. I know I'm missing > > something. > > > > Help... > > > > > > > > > > >+--------------------------------------------------------------------------- >--------+ > > > > Philip Humeniuk > > [EMAIL PROTECTED] > > [EMAIL PROTECTED] > > >+--------------------------------------------------------------------------- >---------+ > > > > > > > ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm 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

