Return to v2.0 docs

isSecure()


Controller Miscellaneous Functions boolean controller


Returns whether CFWheels is communicating over a secure port.

// Redirect non-secure connections to the secure version
if (!isSecure())
{
redirectTo(protocol="https");
}

Related Functions

Miscellaneous Functions