User Guide
GetAuthUser 479
GetAuthUser
Description
Gets the name of an authenticated user.
Returns
The name of an authenticated user.
Category
Authentication functions
Function syntax
GetAuthUser()
See also
IsUserInRole, cflogin, cfloginuser,
Chapter 16, “Securing Applications,” in Developing
ColdFusion MX Applications
History
ColdFusion MX: Added this function.
Usage
This function works with cflogin authentication or web server authentication. It checks for a
logged-in user as follows:
1 It checks for a login made with cfloginuser.
2 If no user was logged in with cfloginuser, it checks for a web server login (cgi.remote_user).
Example
<H3>GetAuthUser Example</H3>
<P>Authenticated User: <cfoutput>GetAuthUser()</cfoutput>