View comments | RSS feed

GetAuthUser

Description

Gets the name of an authenticated user.

Return value

The name of an authenticated user.

Category

Authentication functions

Syntax

GetAuthUser()

See also

isUserInRole

History

New in ColdFusion MX: this function is new.

Example

<H3>GetAuthUser Example</H3>

<P>Authenticated User: <cfoutput>GetAuthUser()</cfoutput>

ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6

Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.

Comments


rnielsen said on Sep 30, 2002 at 12:44 PM :
getAuthUser() works with web server authentication as well as ColdFusion cflogin authentication. That is, first it checks for a login made with cfloginuser, and if none exists, then it checks for a web server login (cgi.remote_user).
BillL said on Nov 18, 2004 at 2:41 AM :
You are missing the "#" signs on the GetAuthUser() example
jrunrandy said on Nov 18, 2004 at 5:49 AM :
You are correct. I just fixed this in the doc source files and it will be right in the next version.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt186.htm