CFLib.org – Common Function Library Project

IsLoggedIn()

Last updated April 29, 2002
Download UDF

author

Raymond Camden                                    Raymond Camden

Version: 1 | Requires: ColdFusion MX | Library: SecurityLib

Description:
Returns true if user is authenticated. Based on new security model in CFMX.

Return Values:
Returns a boolean.

Example:

<cfif isLoggedIn()>
    You are logged in.
<cfelse>
    You are not logged in.
</cfif>

Parameters:

No arguments.

Full UDF Source:

<cfscript>
/**
* Returns true if user is authenticated.
*
* @return Returns a boolean.
* @author Raymond Camden (ray@camdenfamily.com)
* @version 1, April 29, 2002
*/

function IsLoggedIn() {
    return getAuthUser() neq "";
}
</cfscript>

Search CFLib.org


Latest Additions

Raymond Compton Raymond Compton added
structBlend
20 day(s) ago

Duncan Duncan added
IsZIPUK
20 day(s) ago

Todd Sharp Todd Sharp added
getTagContentAll
26 day(s) ago

Gerald Guido Gerald Guido added
ListReturnDuplicat...
1 month(s) ago

Gerald Guido Gerald Guido added
ListReturnDuplicat...
1 month(s) ago

Created by Raymond Camden / Design by Justin Johnson