I'm trying to use a session variable to capture the userid from my Login page.
I've enabled sessionmanagement on the application.cfm page and created a varaible called <CfSet Session.userloginname = "Default">
On the login page I have:
<cfif IsDefined("Form.userlogin">
<cfset Session.UserLoginName = #userlogin#>
</cfif>
After the user is autheniticated, I have a page where I list an output statement:
<cfoutput>#Session.Login.UserLoginName#</cfoutput>
My problem is that "Default" is the only value that ever shows on a cfoutput. I have manually changed <cfset session.userloginname = "cherries"> and the
output statement will show "cherries" for that page, but the value of "default" returns on the following page.
Any help would be greatly appreciated.
Ron McNatt
I've enabled sessionmanagement on the application.cfm page and created a varaible called <CfSet Session.userloginname = "Default">
On the login page I have:
<cfif IsDefined("Form.userlogin">
<cfset Session.UserLoginName = #userlogin#>
</cfif>
After the user is autheniticated, I have a page where I list an output statement:
<cfoutput>#Session.Login.UserLoginName#</cfoutput>
My problem is that "Default" is the only value that ever shows on a cfoutput. I have manually changed <cfset session.userloginname = "cherries"> and the
output statement will show "cherries" for that page, but the value of "default" returns on the following page.
Any help would be greatly appreciated.
Ron McNatt