Hi, You mentioned that the user login checking code is in app_controller, that's fine. But I didn't get what you mean by 'it works fine for all of my models'. How a model is related to user login checking code in app_controller?
Amit PHP Applications for E-Biz: http://www.sanisoft.com/ On Wed, Nov 10, 2010 at 12:28 AM, 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 > > 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]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > 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
