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