getAuthUser
Description
Gets the name of an authenticated user.
Categories
Related
History
ColdFusion
MX: Added this function.
Syntax
GetAuthUser()
Returns
The
name of an authenticated user.
Usage
This function works with cflogin authentication or web server authentication. It checks for a logged-in user as follows:
It checks for a login made with cfloginuser.
If no user was logged in with cfloginuser, it checks for a web server login (cgi.remote_user).
It checks for a login made with cfloginuser.
If no user was logged in with cfloginuser, it checks for a web server login (cgi.remote_user).
Example
<H3>GetAuthUser Example</H3> Authenticated User: <cfoutput>#GetAuthUser()#</cfoutput>