I think I fixed this by adding this line to the beforeFilter() method:
$this-Auth-allow('logout');
On Jan 19, 10:10 am, opike hastapast...@gmail.com wrote:
I finished implementing the acl tutorial
here:http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application
and it was working for the most part, I was testing logging in and out
with the different users.
But now it's in a state where it won't let me access any of the other
pages and always redirects me to the top level index.php page with the
message You are not authorized to access that location..
I thought I would be able to run the logout function by issuing this
url:http://localhost/cake/app/users/logout
but I get the same not authorized message.
When I try to access the login page (http://localhost/cake/users/
login) I get the message You are logged in. without being prompted
for username and password.
I even tried bouncing apache to reset the session info but that had no
effect.
How can I get back to where the login page is prompting me for
username/password again?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php