IsSessionVarEnabled()
Last updated April 29, 2002
Version: 1 | Requires: CF6 | Library: UtilityLib
Description:
Returns true if session variables are enabled.
Return Values:
Returns a boolean.
Example:
<cfoutput>
Are we working inside a session scope? #IsSessionVarEnabled()#
</cfoutput>
Parameters:
No arguments.
Full UDF Source:
/**
* Returns true if session variables are enabled.
*
* @return Returns a boolean.
* @author Raymond Camden (ray@camdenfamily.com)
* @version 1, April 29, 2002
*/
function IsSessionVarEnabled() {
var foo = "";
try {
foo = session.urltoken;
return true;
} catch("Any" e) {
return false;
}
}
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