House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / Fusebox

Reading sessions in the controller

Author:
Joe Tseng
03/18/2009 06:35 AM

I've been trying to figure out how to make my app save user credentials into session params after they've logged in.  My intent is to save those values within my controller's prefuseaction method and use the sessions in subsequent steps: <cfloginuser name="#theusername#" password="#thepassword#" roles="#getUserInfo.role#"> <cfset session.username = GetAuthUser() > <cfset session.userrole = GetUserRoles() > To verify values were saved I printed them in my layout in postfuseaction: <cfset event.xfa("username", structfind(session,"username"))> ... <cfoutput>#xfa.username#</cfoutput> And I get a big, fat nothing.  So my question is how do you handle user creds in your apps? tia, - Joe


Search fusebox

February 11, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29