Adobe ColdFusion 8

IsUserLoggedIn

Description

Determines whether a user is logged in.

Returns

True, if the user, is logged in; False, otherwise.

Category

Security functions, Decision functions

Function syntax

IsUserLoggedIn()

See also

cflogin, cfloginuser, GetAuthUser, GetUserRoles, IsUserInAnyRole, IsUserInRole, "Securing Applications" in the ColdFusion Developer's Guide

History

ColdFusion 8: Added this function.

Example

<cfif IsUserLoggedIn() >
    <cfinclude template="welcome.cfm">
<cfelse>
    <cfinclude template="loginform.cfm">
    <cfabort>
</cfif>



Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant