Hi How to assign session values wuth an structure like this inside an CFC: security.cfc
<cfcomponent> <cffunction access="public" name="authentication" output="0"> <!--- security authentication function ---> <!--- username and password required ---> <cfargument name="cfcLogin" type="string" required="1"/> <cfargument name="cfcPassword" type="string" required="1"/> <cfquery name="getUserAuth" ...../> <CFSET Session.Auth=StructNew()> <CFSET Session.Auth.LoggedIn="Yes"> <CFSET Session.Auth.UserID=getUserAuth.strUserID> <CFSET Session.Auth.Name=getUserAuth.strUserName> <CFSET Session.Auth.Roles=ValueList(getUserAuth.rolesID)> <CFSET Session.Auth.RolesGrouped=ValueList(getUserAuth.roles_grouped)> <CFSET Session.Auth.Roles2=ValueList(getUserAuth.roles)> <CFSET Session.Auth.RolesDescr=ValueList(getUserAuth.rolesdescr)> and return all that Session values to all my application? Call CFC: <cfif structKeyExists(form,"checkAuth")> <!--- The user pressed the authenticate button ---> <cfinvoke component="security" method="authentication" returnVariable="authentictedSN" cfcLogin="#form.Login#" cfcPassword="#form.Password#"> </cfif> <cfdump var="#Session#"> give an error.... Thanx in advance ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.houseoffusion.com/banners/view.cfm?bannerid=11 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182642 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

