Name
GetAuthUser
Synopsis
GetAuthUser( )
Returns the name of an authenticated user when used in conjunction with ColdFusion MX’s built-in security. Example:
<cflogin> <cfquery name="AuthenticateUser" datasource="ProgrammingCF"> SELECT * FROM Users WHERE Username='pmoney' AND Password='#Hash("cat")#' </cfquery> <cfloginuser name="pmoney" password="#Hash("CAT")#" roles="editor,user"> </cflogin> <cfoutput> Who is the current authenticated user? #GetAuthUser( )# </cfoutput>
Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.