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