I spent a long time on this so I thought I'd share it with the
community. I was wracking my brain trying to get Auth to work properly
on a site I'm testing locally in Firefox 3. No matter what I did, the
application locked me out with a message stating "You are not
authorized...". I read several blog posts about Auth and the entry in
the manual over and over.

Then on a whim I tested the same site in Safari and got totally
different results. Today I looked at my Firefox cookies and noticed
that there were two CakePHP cookies. One current (presumably from just
having logged in) and one expired. I deleted the expired cookie and
the application worked.

Here are the specifics:

Cake 1.2.0.7125 RC1
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9) Gecko/
2008061004 Firefox/3.0

I'm not sure if this is a fluke, a Firefox bug or a CakePHP bug. I
just thought I'd share what I found in case anyone else is
troubleshooting Auth and is having trouble.

The upside to this story is that I learned an awful lot about CakePHP
Auth in the process.

Here a list of articles I found helpful:

http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/
http://www.littlehart.net/atthekeyboard/2007/09/11/a-hopefully-useful-tutorial-for-using-cakephps-auth-component/
http://bakery.cakephp.org/articles/view/simple-form-authentication-in-1-2-x-x
http://lemoncake.wordpress.com/2007/07/19/using-authcomponent-and-acl-in-cakephp-12/
http://realm3.com/articles/setting_up_users_groups_withacl_and_auth_in_cake_1.2.php

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to