为了减少服务器负载,我想在用户完成需要SSL的操作后重定向回http://whatever_url.
我该怎么做呢?
if (!in_array($this->action,$this->Security->requireSecure) and env('HTTPS')) $this->_unforceSSL();
该功能定义为:
function _unforceSSL() { $this->redirect('http://' . $_SERVER['SERVER_NAME'] . $this->here); }