On Tue, Nov 9, 2010 at 1:58 PM, ChrisH <[email protected]> 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 [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