CFLib.org – Common Function Library Project

IsLoggedIn()

Last updated April 29, 2002

author

Raymond Camden

Version: 1 | Requires: CF6 | 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:

/**
 * 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 "";
}

Search CFLib.org


Latest Additions

Raymond Camden added
QueryDeleteRows
November 04, 2017

Leigh added
nullPad
May 11, 2016

Raymond Camden added
stripHTML
May 10, 2016

Kevin Cotton added
date2ExcelDate
May 05, 2016

Raymond Camden added
CapFirst
April 25, 2016

Created by Raymond Camden / Design by Justin Johnson