Tuesday, November 9, 2010

Re: Auth User problem

On Tue, Nov 9, 2010 at 1:58 PM, ChrisH <cphalpert@gmail.com> wrote:
> I use $this->Auth->user(); from within app_controller to check if the
> user is logged in. For some reason it works fine for all of my models
> except 'Question.' If I check the session variable from any of the
> Question actions, [Auth][User] just isn't there but it's replaced by
> [Auth][redirect] => /.
> I can't figure out why Auth.User is disappearing. Any ideas?
> Thanks

Have you included both Auth & Session in AppController, or are you
doing so in each individual controller (and, perhaps, forgot to do so
in this one)? Best to do it in App.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate