using the sample code in the book.
function beforeFilter(){
$this->Security->blackHoleCallback = 'forceSSL';
$this->Security->requireSecure('login');
}
function forceSSL() {
$this->redirect('https://' . $_SERVER['SERVER_NAME'] . $this->here);
}
What I am not seeing is some way to tell my app to redirect back to
non-SSL requests once the user is logged in. Has anybody got any
suggestions on the best way to accomplish this?
I have also seen posts talking about seesions not working when
switching between SSL and non-SSL requests. Is this still a problem? I
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment