You are viewing documentation for v1.1.x. Change

isSecure()

Description

Returns whether Wheels is communicating over a secure port.

Function Syntax

isSecure()

Parameters

None.

Examples

<!--- Redirect non-secure connections to the secure version --->
<cfif not isSecure()>
    <cfset redirectTo(protocol="https")>
</cfif>