Thats it!

Thanks

At 11:31 AM 3/28/2002 -0800, you wrote:
>try this:
><cfcookie name="SetGroups" value="#valuelist(users.group)#" expires="NEVER">
>
>+-----------------------------------------------+
>Bryan Love
>   Macromedia Certified Professional
>   Internet Application Developer
>   Database Analyst
>Telecommunication Systems
>[EMAIL PROTECTED]
>+-----------------------------------------------+
>
>"...'If there must be trouble, let it be in my day, that my child may have
>peace'..."
>         - Thomas Paine, The American Crisis
>
>
>
>-----Original Message-----
>From: Bryan Love [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, March 28, 2002 11:28 AM
>To: CF-Talk
>Subject: RE: <CFCOOKIE
>
>
>You are displaying the GROUP variable from inside a loop, but you are also
>setting the cookie inside the loop.  So you are really doing this...
>
>contract
>[set cookie to contract]
>
>hrls
>[set cookie to hrls]
>
>supprt
>[set cookie to support]
>
>tax
>[set cookie to tax]
>
>Administrators
>[set cookie to Administrators]
>
>so you can see why the cookie ends up being Administrators...
>
>+-----------------------------------------------+
>Bryan Love
>   Macromedia Certified Professional
>   Internet Application Developer
>   Database Analyst
>Telecommunication Systems
>[EMAIL PROTECTED]
>+-----------------------------------------------+
>
>"...'If there must be trouble, let it be in my day, that my child may have
>peace'..."
>         - Thomas Paine, The American Crisis
>
>
>
>-----Original Message-----
>From: phumes1 [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, March 28, 2002 11:08 AM
>To: CF-Talk
>Subject: Re: <CFCOOKIE
>
>
>Hi,
>
>I'm using a custom tag the displays the groups assigned to a specific user
>which works fine.
>The code below is in my application.cfm file in my wwwroot. I can't seem to
>figure out when I set a cookie it only displays the last group of that user?
>
>When I run the code for the first time the following groups are displayed
>from the #group#
>
>contract hrls supprt tax Administrators
>
>Groups: Administrators
>
>Why is it only displaying "Administrators" and not the who string?
>
>The idea is to use the cookie.SetGroups to set profiles for each user based
>on the groups assigned to them
>via NT.
>
><cfif IsDefined("Cookie.Groups") is "False">
>          <cfcookie name="Groups" value="1">
>          <!--- START LIST VALID GROUPS FOR A SPECIFIC USER --->
>          <CFX_Users ACTION="GROUPS" SCOPE="Local" USER="test">
>          <CFIF IsDefined("Users")>
>                  <CFIF IsQuery(Users)>
>                  <CFLOOP QUERY="Users">
>                          <cfoutput>
>                          #Group#
>                          </cfoutput>
>                          <cfcookie name="SetGroups" value="#group#"
>expires="NEVER">
>                  </CFLOOP>
>                  </CFIF>
>          </CFIF>
>          <!--- END LIST VALID GROUPS FOR A SPECIFIC USER --->
></cfif>
>
>Groups: <cfoutput>#COOKIE.SetGroups#</cfoutput>
>
>
>
>
>
>+---------------------------------------------------------------------------
>--------+
>
>Philip Humeniuk
>[EMAIL PROTECTED]
>[EMAIL PROTECTED]
>+---------------------------------------------------------------------------
>---------+
>
>
>
>
>
______________________________________________________________________
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

Reply via email to