nuts and bolts of cakephp | Tag Archive | cakephp ssl enforce
A simple way to check and enforce SSL can be done by using the
RequestHandlercomponent.
Here’s an example:
12345privatefunctioncheckHttps() {if(!$this->RequestHandler->isSSL()) {}}