Cake 1.3 features a Session helper - you need to explicitly include Session as component and helper in your controllers. So it becomes $this->Session->read.
But, wouldn't it be better to do this in your app controller: > $this->set('Auth',$this->Auth->user()); Then you have $Auth exposed to every view. :) On Mar 12, 12:19 pm, Kanten <anders.ho...@gmail.com> wrote: > Dear all, > > I'm trying to acess the Session model for info regarding the > authentication of my users in pages views. In 1.2 I have used the > following code: > $session->read('Auth.User.user_group_id') > 1 > > It seems like the $session var is gone in 1.3 though. What do I use > instead? > > /Anders 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en