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, I've included
> 
>               var $components = array('Auth');
>               function beforeFilter()
>               {
>                       $this->Auth->allow('register', 'show');
>                       $this->Auth->loginRedirect = array('controller' => 
> 'users',
> 'action' => 'uploadpictures');
> 
>               //      parent::beforeFilter();
>               }
>               function login() {
> 
>               }
> 
>               function logout() {
>                       $this->redirect($this->Auth->logout());
>               }
> 
> I have the login.ctp with the proper form fields.
> 
> Login and logout seem to work - I can only access /users/
> uploadpictures after logging in, and can't access it after logging
> out.  So far so good.
> 
> Now, I'm trying to determine if the user is logged in.  According to
> this -  http://snook.ca/archives/cakephp/setting_layout/  - I should
> be able to just use $this->Session->check('User') in the controller,
> but it always returns false.
> 
> Doing a debug($this->Session) in the controller, or debug ($session)
> in the view, shows no traces of the user information anywhere in the
> session.
> 
> I am clearly missing something - either in my understanding of Auth,
> or in my understanding of sessions (or both).  From what I've read it
> seems to me that Auth is supposed to automagically store the user data
> in the session after a successful login - maybe that's incorrect?
> 
> Again, thanks so much for any help!
> 
> Alex
> > 


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to