I am trying to set up the app so the admin section is in SSL.
So I have the ssl.php component
In my app_controller i have
var $components = array('Auth', 'Acl', 'RequestHandler', 'Cookie', 'Ssl');
in my beforeFilter
$admin = Configure::read('Routing.admin');
if (isset($this->params[$admin]) && $this->params[$admin]) {
$this->__checkAdminSession();
$this->Ssl->force();
$this->layout = 'admin';
}
function __checkAdminSession()
{
if ($this->Auth->user('role') != 'admin')) {
$this->Session->destroy();
$this->redirect('/users/login');
exit();
}
}
So I login...site changes from http to https then
Firefox can't find the file at https://www.mysite/admin/users
Before my https attempt it worked fine. What am I missing?
Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---