Back
isSecure()
Returns whether CFWheels is communicating over a secure port.
// Redirect non-secure connections to the secure version
if (!isSecure())
{
redirectTo(protocol="https");
}
Copied!