Auth doesn't store user data in session after login?

2008-09-27 Thread alex_c
Hi all, I've been pouring over the docs and this group, but I can't really figure it out. In my UsersController, I've included var $components = array('Auth'); function beforeFilter() { $this-Auth-allow('register',

Re: Auth doesn't store user data in session after login?

2008-09-27 Thread Günther Theilen
Hi, what's the name of your session cookie? I had a similar problem with a session cookie name foo.bar. When I renamed it to foo_bar everything worked fine. alex_c schrieb: Hi all, I've been pouring over the docs and this group, but I can't really figure it out. In my UsersController,

Re: Auth doesn't store user data in session after login?

2008-09-27 Thread aaron50x
Well alex_c, try the $this-Session-chek('Auth.User')... and you only can see the uploadpictures after logging, because only the show and the register actions are allowed without login, so for any other action you will need to login first. And I'm not pretty sure, but I think that you should

Re: Auth doesn't store user data in session after login?

2008-09-27 Thread alex_c
try the $this-Session-chek('Auth.User') Bingo! check(Auth.User) works, check(User) doesn't (maybe that article was written for 1.1?) Thanks for the help! Alex On Sep 27, 3:31 am, aaron50x [EMAIL PROTECTED] wrote: Well alex_c, try the $this-Session-chek('Auth.User')... and you only can see